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', |
(...skipping 14 matching lines...) Expand all Loading... |
25 '../tools/gpu', | 25 '../tools/gpu', |
26 ], | 26 ], |
27 }, | 27 }, |
28 'dependencies': [ | 28 'dependencies': [ |
29 'skia_lib.gyp:skia_lib', | 29 'skia_lib.gyp:skia_lib', |
30 ], | 30 ], |
31 'sources': [ | 31 'sources': [ |
32 '<!@(python find.py ../tools/gpu "*")' | 32 '<!@(python find.py ../tools/gpu "*")' |
33 ], | 33 ], |
34 'conditions': [ | 34 'conditions': [ |
35 [ 'skia_mesa and skia_os == "linux"', { | 35 [ 'skia_mesa', { 'dependencies': [ 'osmesa' ] } ], |
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', { | 36 [ 'skia_angle', { |
53 'dependencies': [ | 37 'dependencies': [ |
54 'angle.gyp:*', | 38 'angle.gyp:*', |
55 ], | 39 ], |
56 'export_dependent_settings': [ | 40 'export_dependent_settings': [ |
57 'angle.gyp:*', | 41 'angle.gyp:*', |
58 ], | 42 ], |
59 }], | 43 }], |
60 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 1', { | 44 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 1', { |
61 'link_settings': { | 45 'link_settings': { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 [ 'skia_angle == 0', { | 98 [ 'skia_angle == 0', { |
115 'sources/': [ | 99 'sources/': [ |
116 ['exclude', '_angle\.(h|cpp)$'], | 100 ['exclude', '_angle\.(h|cpp)$'], |
117 ], | 101 ], |
118 }], | 102 }], |
119 [ 'skia_command_buffer == 0', { | 103 [ 'skia_command_buffer == 0', { |
120 'sources/': [ ['exclude', '_command_buffer\.(h|cpp)$'], ], | 104 'sources/': [ ['exclude', '_command_buffer\.(h|cpp)$'], ], |
121 }], | 105 }], |
122 ], | 106 ], |
123 }, | 107 }, |
| 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 }, |
124 ], | 121 ], |
125 } | 122 } |
OLD | NEW |