OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 # This is defined here because we need to compile this set of files | 8 # This is defined here because we need to compile this set of files |
9 # twice with different defines. Once so it calls real GL, again so it | 9 # twice with different defines. Once so it calls real GL, again so it |
10 # calls mock GL for the unit tests. | 10 # calls mock GL for the unit tests. |
11 'gpu_source_files': [ | 11 'gpu_source_files': [ |
12 'command_buffer/service/gles2_cmd_decoder.h', | 12 'command_buffer/service/gles2_cmd_decoder.h', |
13 'command_buffer/service/gles2_cmd_decoder_autogen.h', | 13 'command_buffer/service/gles2_cmd_decoder_autogen.h', |
14 'command_buffer/service/gles2_cmd_decoder.cc', | 14 'command_buffer/service/gles2_cmd_decoder.cc', |
15 'command_buffer/service/gles2_cmd_validation.h', | 15 'command_buffer/service/gles2_cmd_validation.h', |
16 'command_buffer/service/gles2_cmd_validation.cc', | 16 'command_buffer/service/gles2_cmd_validation.cc', |
17 'command_buffer/service/gles2_cmd_validation_autogen.h', | 17 'command_buffer/service/gles2_cmd_validation_autogen.h', |
18 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', | 18 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', |
19 'command_buffer/service/gl_utils.h', | 19 'command_buffer/service/gl_utils.h', |
20 ], | 20 ], |
21 }, | 21 }, |
22 'includes': [ | |
23 '../build/common.gypi', | |
24 ], | |
25 'targets': [ | 22 'targets': [ |
26 { | 23 { |
27 'target_name': 'gl_libs', | 24 'target_name': 'gl_libs', |
28 'type': 'static_library', | 25 'type': 'static_library', |
29 'include_dirs': [ | 26 'include_dirs': [ |
30 '../third_party/glew/include', | 27 '../third_party/glew/include', |
31 ], | 28 ], |
32 'defines': [ | 29 'defines': [ |
33 'GLEW_STATIC', | 30 'GLEW_STATIC', |
34 ], | 31 ], |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 'command_buffer/client/gles2_cmd_helper_autogen.h', | 128 'command_buffer/client/gles2_cmd_helper_autogen.h', |
132 ], | 129 ], |
133 }, | 130 }, |
134 { | 131 { |
135 # Library emulates GLES2 using command_buffers. | 132 # Library emulates GLES2 using command_buffers. |
136 'target_name': 'gles2_implementation', | 133 'target_name': 'gles2_implementation', |
137 'type': 'static_library', | 134 'type': 'static_library', |
138 'dependencies': [ | 135 'dependencies': [ |
139 'gles2_cmd_helper', | 136 'gles2_cmd_helper', |
140 ], | 137 ], |
| 138 'all_dependent_settings': { |
| 139 'include_dirs': [ |
| 140 # For GLES2/gl2.h |
| 141 'command_buffer/common', |
| 142 ], |
| 143 }, |
141 'sources': [ | 144 'sources': [ |
142 'command_buffer/client/gles2_implementation_autogen.h', | 145 'command_buffer/client/gles2_implementation_autogen.h', |
143 'command_buffer/client/gles2_implementation.cc', | 146 'command_buffer/client/gles2_implementation.cc', |
144 'command_buffer/client/gles2_implementation.h', | 147 'command_buffer/client/gles2_implementation.h', |
145 ], | 148 ], |
146 }, | 149 }, |
147 { | 150 { |
148 # Stub to expose gles2_implementation as a namespace rather than a class | 151 # Stub to expose gles2_implementation as a namespace rather than a class |
149 # so GLES2 C++ programs can work with no changes. | 152 # so GLES2 C++ programs can work with no changes. |
150 'target_name': 'gles2_lib', | 153 'target_name': 'gles2_lib', |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 ] | 262 ] |
260 }, | 263 }, |
261 ], | 264 ], |
262 ['OS == "win"', | 265 ['OS == "win"', |
263 { | 266 { |
264 'sources': [ | 267 'sources': [ |
265 'command_buffer/service/gpu_processor_win.cc', | 268 'command_buffer/service/gpu_processor_win.cc', |
266 ], | 269 ], |
267 }, | 270 }, |
268 ], | 271 ], |
| 272 ['OS == "mac"', |
| 273 { |
| 274 'sources': [ |
| 275 'command_buffer/service/gpu_processor_mac.cc', |
| 276 ], |
| 277 }, |
| 278 ], |
269 ], | 279 ], |
270 }, | 280 }, |
271 { | 281 { |
272 'target_name': 'command_buffer_service', | 282 'target_name': 'command_buffer_service', |
273 'type': 'static_library', | 283 'type': 'static_library', |
274 'include_dirs': [ | 284 'include_dirs': [ |
275 '..', | 285 '..', |
276 ], | 286 ], |
277 'all_dependent_settings': { | 287 'all_dependent_settings': { |
278 'include_dirs': [ | 288 'include_dirs': [ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 }, | 423 }, |
414 ], | 424 ], |
415 ], | 425 ], |
416 } | 426 } |
417 | 427 |
418 # Local Variables: | 428 # Local Variables: |
419 # tab-width:2 | 429 # tab-width:2 |
420 # indent-tabs-mode:nil | 430 # indent-tabs-mode:nil |
421 # End: | 431 # End: |
422 # vim: set expandtab tabstop=2 shiftwidth=2: | 432 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |