scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 5 | { |
| 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'skgputest', |
| 9 | 'product_name': 'skia_skgputest', |
| 10 | 'type': 'static_library', |
| 11 | 'standalone_static_library': 1, |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 12 | 'include_dirs': [ |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 13 | '../include/core', |
| 14 | '../include/config', |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 15 | '../include/gpu', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 16 | '../include/private', |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 17 | '../include/utils', |
| 18 | '../src/core', |
| 19 | '../src/gpu', |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 20 | '../src/utils', |
| 21 | '../tools/gpu', |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 22 | ], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 23 | 'all_dependent_settings': { |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 24 | 'include_dirs': [ |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 25 | '../tools/gpu', |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 26 | ], |
| 27 | }, |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 28 | 'dependencies': [ |
| 29 | 'skia_lib.gyp:skia_lib', |
| 30 | ], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 31 | 'sources': [ |
mtklein | ada5a44 | 2016-08-02 14:28:26 -0700 | [diff] [blame] | 32 | '<!@(python find.py "*" ../tools/gpu)' |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 33 | ], |
| 34 | 'conditions': [ |
halcanary | 9060213 | 2016-04-20 08:49:53 -0700 | [diff] [blame] | 35 | [ 'skia_mesa', { 'dependencies': [ 'osmesa' ] } ], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 36 | [ 'skia_angle', { |
| 37 | 'dependencies': [ |
| 38 | 'angle.gyp:*', |
| 39 | ], |
| 40 | 'export_dependent_settings': [ |
| 41 | 'angle.gyp:*', |
| 42 | ], |
| 43 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 44 | [ 'skia_os == "linux" and skia_egl == 1', { |
Brian Salomon | 142659c | 2016-03-30 23:20:09 -0400 | [diff] [blame] | 45 | 'link_settings': { |
| 46 | 'libraries': [ |
| 47 | '-lEGL', |
| 48 | '-lGLESv2', |
| 49 | ], |
| 50 | }, |
| 51 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 52 | [ 'skia_os == "linux" and skia_egl == 0', { |
Brian Salomon | 142659c | 2016-03-30 23:20:09 -0400 | [diff] [blame] | 53 | 'link_settings': { |
| 54 | 'libraries': [ |
| 55 | '-lGL', |
| 56 | '-lGLU', |
| 57 | '-lX11', |
| 58 | ], |
| 59 | }, |
| 60 | }], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 61 | [ 'skia_os == "android"', { |
| 62 | 'defines': [ |
| 63 | 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', |
| 64 | ], |
| 65 | 'link_settings': { |
| 66 | 'libraries': [ |
| 67 | '-lGLESv2', |
| 68 | '-lEGL', |
| 69 | ], |
| 70 | }, |
| 71 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 72 | ['skia_os in ["linux", "win", "mac", "android", "ios"]', { |
bsalomon | e5adad4 | 2016-04-01 04:50:45 -0700 | [diff] [blame] | 73 | 'sources/': [ ['exclude', '_none\.(h|cpp)$'],], |
| 74 | }], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 75 | ['skia_os != "win"', { |
| 76 | 'sources/': [ ['exclude', '_win\.(h|cpp)$'],], |
| 77 | }], |
| 78 | ['skia_os != "mac"', { |
| 79 | 'sources/': [ ['exclude', '_mac\.(h|cpp|m|mm)$'],], |
| 80 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 81 | ['skia_os != "linux"', { |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 82 | 'sources/': [ ['exclude', '_glx\.(h|cpp)$'],], |
| 83 | }], |
| 84 | ['skia_os != "ios"', { |
| 85 | 'sources/': [ ['exclude', '_iOS\.(h|cpp|m|mm)$'],], |
| 86 | }], |
| 87 | ['skia_os != "android"', { |
| 88 | 'sources/': [ ['exclude', '_android\.(h|cpp)$'],], |
| 89 | }], |
| 90 | ['skia_egl == 0', { |
| 91 | 'sources/': [ ['exclude', '_egl\.(h|cpp)$'],], |
| 92 | }], |
| 93 | [ 'skia_mesa == 0', { |
| 94 | 'sources/': [ |
| 95 | ['exclude', '_mesa\.(h|cpp)$'], |
| 96 | ], |
| 97 | }], |
| 98 | [ 'skia_angle == 0', { |
| 99 | 'sources/': [ |
| 100 | ['exclude', '_angle\.(h|cpp)$'], |
| 101 | ], |
| 102 | }], |
| 103 | [ 'skia_command_buffer == 0', { |
| 104 | 'sources/': [ ['exclude', '_command_buffer\.(h|cpp)$'], ], |
| 105 | }], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 106 | ], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 107 | }, |
halcanary | 9060213 | 2016-04-20 08:49:53 -0700 | [diff] [blame] | 108 | { |
| 109 | 'target_name': 'osmesa', |
| 110 | 'type': 'none', |
| 111 | 'direct_dependent_settings': { |
| 112 | 'link_settings': { 'libraries': [ '-lOSMesa', ], }, |
| 113 | 'conditions': [ |
| 114 | [ 'skia_os == "mac"', { |
| 115 | 'link_settings': { 'library_dirs' : [ '/opt/X11/lib' ], }, |
| 116 | 'include_dirs': [ '/opt/X11/include', ], |
| 117 | }], |
| 118 | ], |
| 119 | }, |
| 120 | }, |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 121 | ], |
| 122 | } |