OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'skgputest', | 8 'target_name': 'skgputest', |
9 'product_name': 'skia_skgputest', | 9 'product_name': 'skia_skgputest', |
10 'type': 'static_library', | 10 'type': 'static_library', |
11 'standalone_static_library': 1, | 11 'standalone_static_library': 1, |
12 'dependencies': [ | |
13 'skia_lib.gyp:skia_lib', | |
14 ], | |
15 'include_dirs': [ | 12 'include_dirs': [ |
| 13 '../include/core', |
| 14 '../include/config', |
16 '../include/gpu', | 15 '../include/gpu', |
17 '../include/private', | 16 '../include/private', |
18 '../include/utils', | 17 '../include/utils', |
19 '../src/core', | 18 '../src/core', |
20 '../src/gpu', | 19 '../src/gpu', |
21 '../../src/gpu', | 20 '../src/utils', |
| 21 '../tools/gpu', |
22 ], | 22 ], |
23 'direct_dependent_settings': { | 23 'all_dependent_settings': { |
24 'include_dirs': [ | 24 'include_dirs': [ |
25 '../src/gpu', | 25 '../tools/gpu', |
26 '../../src/gpu', | |
27 ], | 26 ], |
28 }, | 27 }, |
| 28 'dependencies': [ |
| 29 'gpu.gyp:skgpu', |
| 30 ], |
29 'sources': [ | 31 'sources': [ |
30 '<(skia_src_path)/gpu/GrContextFactory.cpp', | 32 '<!@(python find.py ../tools/gpu "*")' |
31 '<(skia_src_path)/gpu/GrContextFactory.h', | 33 ], |
32 '<(skia_src_path)/gpu/GrTest.cpp', | 34 'conditions': [ |
33 '<(skia_src_path)/gpu/GrTest.h', | 35 [ 'skia_mesa and skia_os == "linux"', { |
| 36 'link_settings': { |
| 37 'libraries': [ |
| 38 '-lOSMesa', |
| 39 ], |
| 40 }, |
| 41 }], |
| 42 [ 'skia_mesa and skia_os == "mac"', { |
| 43 'link_settings': { |
| 44 'libraries': [ |
| 45 '/opt/X11/lib/libOSMesa.dylib', |
| 46 ], |
| 47 }, |
| 48 'include_dirs': [ |
| 49 '/opt/X11/include/', |
| 50 ], |
| 51 }], |
| 52 [ 'skia_angle', { |
| 53 'dependencies': [ |
| 54 'angle.gyp:*', |
| 55 ], |
| 56 'export_dependent_settings': [ |
| 57 'angle.gyp:*', |
| 58 ], |
| 59 }], |
| 60 ['skia_os != "win"', { |
| 61 'sources/': [ ['exclude', '_win\.(h|cpp)$'],], |
| 62 }], |
| 63 ['skia_os != "mac"', { |
| 64 'sources/': [ ['exclude', '_mac\.(h|cpp|m|mm)$'],], |
| 65 }], |
| 66 ['skia_os != "linux" and skia_os != "chromeos"', { |
| 67 'sources/': [ ['exclude', '_glx\.(h|cpp)$'],], |
| 68 }], |
| 69 ['skia_os != "ios"', { |
| 70 'sources/': [ ['exclude', '_iOS\.(h|cpp|m|mm)$'],], |
| 71 }], |
| 72 ['skia_os != "android"', { |
| 73 'sources/': [ ['exclude', '_android\.(h|cpp)$'],], |
| 74 }], |
| 75 ['skia_egl == 0', { |
| 76 'sources/': [ ['exclude', '_egl\.(h|cpp)$'],], |
| 77 }], |
| 78 [ 'skia_mesa == 0', { |
| 79 'sources/': [ |
| 80 ['exclude', '_mesa\.(h|cpp)$'], |
| 81 ], |
| 82 }], |
| 83 [ 'skia_angle == 0', { |
| 84 'sources/': [ |
| 85 ['exclude', '_angle\.(h|cpp)$'], |
| 86 ], |
| 87 }], |
| 88 [ 'skia_command_buffer == 0', { |
| 89 'sources/': [ ['exclude', '_command_buffer\.(h|cpp)$'], ], |
| 90 }], |
| 91 # Nullify this target if not building GPU |
| 92 [ 'skia_gpu == 0', { |
| 93 'sources/': [ |
| 94 ['exclude', '.*'], |
| 95 ], |
| 96 'defines/': [ |
| 97 ['exclude', '.*'], |
| 98 ], |
| 99 'include_dirs/': [ |
| 100 ['exclude', '.*'], |
| 101 ], |
| 102 'link_settings': { |
| 103 'libraries/': [ |
| 104 ['exclude', '.*'], |
| 105 ], |
| 106 }, |
| 107 }], |
34 ], | 108 ], |
35 }, | 109 }, |
36 ], | 110 ], |
37 } | 111 } |
OLD | NEW |