2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2013-08-21 19:27:48 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'skgputest',
|
|
|
|
'product_name': 'skia_skgputest',
|
|
|
|
'type': 'static_library',
|
|
|
|
'standalone_static_library': 1,
|
|
|
|
'include_dirs': [
|
2016-03-31 01:56:19 +00:00
|
|
|
'../include/core',
|
|
|
|
'../include/config',
|
2013-08-21 19:27:48 +00:00
|
|
|
'../include/gpu',
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2013-08-21 19:27:48 +00:00
|
|
|
'../include/utils',
|
|
|
|
'../src/core',
|
|
|
|
'../src/gpu',
|
2016-03-31 01:56:19 +00:00
|
|
|
'../src/utils',
|
|
|
|
'../tools/gpu',
|
2013-08-21 19:27:48 +00:00
|
|
|
],
|
2016-03-31 01:56:19 +00:00
|
|
|
'all_dependent_settings': {
|
2013-08-21 19:27:48 +00:00
|
|
|
'include_dirs': [
|
2016-03-31 01:56:19 +00:00
|
|
|
'../tools/gpu',
|
2013-08-21 19:27:48 +00:00
|
|
|
],
|
|
|
|
},
|
2016-03-31 01:56:19 +00:00
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
2013-08-21 19:27:48 +00:00
|
|
|
'sources': [
|
2016-03-31 01:56:19 +00:00
|
|
|
'<!@(python find.py ../tools/gpu "*")'
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_mesa and skia_os == "linux"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lOSMesa',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
[ 'skia_mesa and skia_os == "mac"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'/opt/X11/lib/libOSMesa.dylib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'include_dirs': [
|
|
|
|
'/opt/X11/include/',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_angle', {
|
|
|
|
'dependencies': [
|
|
|
|
'angle.gyp:*',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'angle.gyp:*',
|
|
|
|
],
|
|
|
|
}],
|
2016-03-31 03:20:09 +00:00
|
|
|
[ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 1', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lEGL',
|
|
|
|
'-lGLESv2',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
[ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lGL',
|
|
|
|
'-lGLU',
|
|
|
|
'-lX11',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-03-31 01:56:19 +00:00
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lGLESv2',
|
|
|
|
'-lEGL',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-04-01 11:50:45 +00:00
|
|
|
['skia_os in ["linux", "win", "mac", "chromeos", "android", "ios"]', {
|
|
|
|
'sources/': [ ['exclude', '_none\.(h|cpp)$'],],
|
|
|
|
}],
|
2016-03-31 01:56:19 +00:00
|
|
|
['skia_os != "win"', {
|
|
|
|
'sources/': [ ['exclude', '_win\.(h|cpp)$'],],
|
|
|
|
}],
|
|
|
|
['skia_os != "mac"', {
|
|
|
|
'sources/': [ ['exclude', '_mac\.(h|cpp|m|mm)$'],],
|
|
|
|
}],
|
|
|
|
['skia_os != "linux" and skia_os != "chromeos"', {
|
|
|
|
'sources/': [ ['exclude', '_glx\.(h|cpp)$'],],
|
|
|
|
}],
|
|
|
|
['skia_os != "ios"', {
|
|
|
|
'sources/': [ ['exclude', '_iOS\.(h|cpp|m|mm)$'],],
|
|
|
|
}],
|
|
|
|
['skia_os != "android"', {
|
|
|
|
'sources/': [ ['exclude', '_android\.(h|cpp)$'],],
|
|
|
|
}],
|
|
|
|
['skia_egl == 0', {
|
|
|
|
'sources/': [ ['exclude', '_egl\.(h|cpp)$'],],
|
|
|
|
}],
|
|
|
|
[ 'skia_mesa == 0', {
|
|
|
|
'sources/': [
|
|
|
|
['exclude', '_mesa\.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_angle == 0', {
|
|
|
|
'sources/': [
|
|
|
|
['exclude', '_angle\.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_command_buffer == 0', {
|
|
|
|
'sources/': [ ['exclude', '_command_buffer\.(h|cpp)$'], ],
|
|
|
|
}],
|
2013-08-21 19:27:48 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|