Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: gyp/gputest.gyp

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gpu.gypi ('k') | gyp/kilobench.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/gputest.gyp
diff --git a/gyp/gputest.gyp b/gyp/gputest.gyp
index 36db43403f7d967250c1eaabcc70ab45d35b7c05..d50e00c9b62ab3f7b4bd9fc048b75e694a7eb398 100644
--- a/gyp/gputest.gyp
+++ b/gyp/gputest.gyp
@@ -9,28 +9,96 @@
'product_name': 'skia_skgputest',
'type': 'static_library',
'standalone_static_library': 1,
- 'dependencies': [
- 'skia_lib.gyp:skia_lib',
- ],
'include_dirs': [
+ '../include/core',
+ '../include/config',
'../include/gpu',
'../include/private',
'../include/utils',
'../src/core',
'../src/gpu',
- '../../src/gpu',
+ '../src/utils',
+ '../tools/gpu',
],
- 'direct_dependent_settings': {
+ 'all_dependent_settings': {
'include_dirs': [
- '../src/gpu',
- '../../src/gpu',
+ '../tools/gpu',
],
},
+ 'dependencies': [
+ 'skia_lib.gyp:skia_lib',
+ ],
'sources': [
- '<(skia_src_path)/gpu/GrContextFactory.cpp',
- '<(skia_src_path)/gpu/GrContextFactory.h',
- '<(skia_src_path)/gpu/GrTest.cpp',
- '<(skia_src_path)/gpu/GrTest.h',
+ '<!@(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:*',
+ ],
+ }],
+ [ 'skia_os == "android"', {
+ 'defines': [
+ 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lGLESv2',
+ '-lEGL',
+ ],
+ },
+ }],
+ ['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)$'], ],
+ }],
],
},
],
« no previous file with comments | « gyp/gpu.gypi ('k') | gyp/kilobench.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698