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', |
Robert Phillips | 86cedfc | 2016-12-20 11:11:08 -0500 | [diff] [blame] | 20 | '../src/image', |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 21 | '../src/utils', |
| 22 | '../tools/gpu', |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 23 | ], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 24 | 'all_dependent_settings': { |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 25 | 'include_dirs': [ |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 26 | '../tools/gpu', |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 27 | ], |
| 28 | }, |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 29 | 'dependencies': [ |
| 30 | 'skia_lib.gyp:skia_lib', |
| 31 | ], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 32 | 'sources': [ |
mtklein | ada5a44 | 2016-08-02 14:28:26 -0700 | [diff] [blame] | 33 | '<!@(python find.py "*" ../tools/gpu)' |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 34 | ], |
| 35 | 'conditions': [ |
halcanary | 9060213 | 2016-04-20 08:49:53 -0700 | [diff] [blame] | 36 | [ 'skia_mesa', { 'dependencies': [ 'osmesa' ] } ], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 37 | [ 'skia_angle', { |
| 38 | 'dependencies': [ |
| 39 | 'angle.gyp:*', |
| 40 | ], |
| 41 | 'export_dependent_settings': [ |
| 42 | 'angle.gyp:*', |
| 43 | ], |
| 44 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 45 | [ 'skia_os == "linux" and skia_egl == 1', { |
Brian Salomon | 142659c | 2016-03-30 23:20:09 -0400 | [diff] [blame] | 46 | 'link_settings': { |
| 47 | 'libraries': [ |
| 48 | '-lEGL', |
| 49 | '-lGLESv2', |
| 50 | ], |
| 51 | }, |
| 52 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 53 | [ 'skia_os == "linux" and skia_egl == 0', { |
Brian Salomon | 142659c | 2016-03-30 23:20:09 -0400 | [diff] [blame] | 54 | 'link_settings': { |
| 55 | 'libraries': [ |
| 56 | '-lGL', |
| 57 | '-lGLU', |
| 58 | '-lX11', |
| 59 | ], |
| 60 | }, |
| 61 | }], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 62 | [ 'skia_os == "android"', { |
| 63 | 'defines': [ |
| 64 | 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', |
| 65 | ], |
| 66 | 'link_settings': { |
| 67 | 'libraries': [ |
| 68 | '-lGLESv2', |
| 69 | '-lEGL', |
| 70 | ], |
| 71 | }, |
| 72 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 73 | ['skia_os in ["linux", "win", "mac", "android", "ios"]', { |
bsalomon | e5adad4 | 2016-04-01 04:50:45 -0700 | [diff] [blame] | 74 | 'sources/': [ ['exclude', '_none\.(h|cpp)$'],], |
| 75 | }], |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 76 | ['skia_os != "win"', { |
| 77 | 'sources/': [ ['exclude', '_win\.(h|cpp)$'],], |
| 78 | }], |
| 79 | ['skia_os != "mac"', { |
| 80 | 'sources/': [ ['exclude', '_mac\.(h|cpp|m|mm)$'],], |
| 81 | }], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 82 | ['skia_os != "linux"', { |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 83 | 'sources/': [ ['exclude', '_glx\.(h|cpp)$'],], |
| 84 | }], |
| 85 | ['skia_os != "ios"', { |
| 86 | 'sources/': [ ['exclude', '_iOS\.(h|cpp|m|mm)$'],], |
| 87 | }], |
| 88 | ['skia_os != "android"', { |
| 89 | 'sources/': [ ['exclude', '_android\.(h|cpp)$'],], |
| 90 | }], |
| 91 | ['skia_egl == 0', { |
| 92 | 'sources/': [ ['exclude', '_egl\.(h|cpp)$'],], |
| 93 | }], |
| 94 | [ 'skia_mesa == 0', { |
| 95 | 'sources/': [ |
| 96 | ['exclude', '_mesa\.(h|cpp)$'], |
| 97 | ], |
| 98 | }], |
| 99 | [ 'skia_angle == 0', { |
| 100 | 'sources/': [ |
| 101 | ['exclude', '_angle\.(h|cpp)$'], |
| 102 | ], |
| 103 | }], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 104 | ], |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 105 | }, |
halcanary | 9060213 | 2016-04-20 08:49:53 -0700 | [diff] [blame] | 106 | { |
| 107 | 'target_name': 'osmesa', |
| 108 | 'type': 'none', |
| 109 | 'direct_dependent_settings': { |
| 110 | 'link_settings': { 'libraries': [ '-lOSMesa', ], }, |
| 111 | 'conditions': [ |
| 112 | [ 'skia_os == "mac"', { |
| 113 | 'link_settings': { 'library_dirs' : [ '/opt/X11/lib' ], }, |
| 114 | 'include_dirs': [ '/opt/X11/include', ], |
| 115 | }], |
| 116 | ], |
| 117 | }, |
| 118 | }, |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 119 | ], |
| 120 | } |