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 ], |
12 'include_dirs': [ | 15 'include_dirs': [ |
13 '../include/core', | |
14 '../include/config', | |
15 '../include/gpu', | 16 '../include/gpu', |
16 '../include/private', | 17 '../include/private', |
17 '../include/utils', | 18 '../include/utils', |
18 '../src/core', | 19 '../src/core', |
19 '../src/gpu', | 20 '../src/gpu', |
20 '../src/utils', | 21 '../../src/gpu', |
21 '../tools/gpu', | |
22 ], | 22 ], |
23 'all_dependent_settings': { | 23 'direct_dependent_settings': { |
24 'include_dirs': [ | 24 'include_dirs': [ |
25 '../tools/gpu', | 25 '../src/gpu', |
| 26 '../../src/gpu', |
26 ], | 27 ], |
27 }, | 28 }, |
28 'dependencies': [ | |
29 'gpu.gyp:skgpu', | |
30 ], | |
31 'sources': [ | 29 'sources': [ |
32 '<!@(python find.py ../tools/gpu "*")' | 30 '<(skia_src_path)/gpu/GrContextFactory.cpp', |
33 ], | 31 '<(skia_src_path)/gpu/GrContextFactory.h', |
34 'conditions': [ | 32 '<(skia_src_path)/gpu/GrTest.cpp', |
35 [ 'skia_mesa and skia_os == "linux"', { | 33 '<(skia_src_path)/gpu/GrTest.h', |
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 ], | 34 ], |
92 }, | 35 }, |
93 ], | 36 ], |
94 } | 37 } |
OLD | NEW |