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': [
|
2016-04-20 15:49:53 +00:00
|
|
|
[ 'skia_mesa', { 'dependencies': [ 'osmesa' ] } ],
|
2016-03-31 01:56:19 +00:00
|
|
|
[ 'skia_angle', {
|
|
|
|
'dependencies': [
|
|
|
|
'angle.gyp:*',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'angle.gyp:*',
|
|
|
|
],
|
|
|
|
}],
|
2016-04-29 21:01:34 +00:00
|
|
|
[ 'skia_os == "linux" and skia_egl == 1', {
|
2016-03-31 03:20:09 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lEGL',
|
|
|
|
'-lGLESv2',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-04-29 21:01:34 +00:00
|
|
|
[ 'skia_os == "linux" and skia_egl == 0', {
|
2016-03-31 03:20:09 +00:00
|
|
|
'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-29 21:01:34 +00:00
|
|
|
['skia_os in ["linux", "win", "mac", "android", "ios"]', {
|
2016-04-01 11:50:45 +00:00
|
|
|
'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)$'],],
|
|
|
|
}],
|
2016-04-29 21:01:34 +00:00
|
|
|
['skia_os != "linux"', {
|
2016-03-31 01:56:19 +00:00
|
|
|
'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
|
|
|
],
|
|
|
|
},
|
2016-04-20 15:49:53 +00:00
|
|
|
{
|
|
|
|
'target_name': 'osmesa',
|
|
|
|
'type': 'none',
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'link_settings': { 'libraries': [ '-lOSMesa', ], },
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
'link_settings': { 'library_dirs' : [ '/opt/X11/lib' ], },
|
|
|
|
'include_dirs': [ '/opt/X11/include', ],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2013-08-21 19:27:48 +00:00
|
|
|
],
|
|
|
|
}
|