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_service_source_files': [ |
12 'command_buffer/service/buffer_manager.h', | 12 'command_buffer/service/buffer_manager.h', |
13 'command_buffer/service/buffer_manager.cc', | 13 'command_buffer/service/buffer_manager.cc', |
14 'command_buffer/service/framebuffer_manager.h', | 14 'command_buffer/service/framebuffer_manager.h', |
15 'command_buffer/service/framebuffer_manager.cc', | 15 'command_buffer/service/framebuffer_manager.cc', |
16 'command_buffer/service/context_group.h', | 16 'command_buffer/service/context_group.h', |
17 'command_buffer/service/context_group.cc', | 17 'command_buffer/service/context_group.cc', |
18 'command_buffer/service/gles2_cmd_decoder.h', | 18 'command_buffer/service/gles2_cmd_decoder.h', |
19 'command_buffer/service/gles2_cmd_decoder_autogen.h', | 19 'command_buffer/service/gles2_cmd_decoder_autogen.h', |
20 'command_buffer/service/gles2_cmd_decoder.cc', | 20 'command_buffer/service/gles2_cmd_decoder.cc', |
21 'command_buffer/service/gles2_cmd_validation.h', | 21 'command_buffer/service/gles2_cmd_validation.h', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 'conditions': [ | 59 'conditions': [ |
60 [ 'OS=="linux"', | 60 [ 'OS=="linux"', |
61 { | 61 { |
62 'all_dependent_settings': { | 62 'all_dependent_settings': { |
63 'defines': [ | 63 'defines': [ |
64 'GL_GLEXT_PROTOTYPES', | 64 'GL_GLEXT_PROTOTYPES', |
65 ], | 65 ], |
66 'ldflags': [ | 66 'ldflags': [ |
67 '-L<(PRODUCT_DIR)', | 67 '-L<(PRODUCT_DIR)', |
68 ], | 68 ], |
69 'libraries': [ | 69 'link_settings': { |
70 '-lX11', | 70 'libraries': [ |
71 # For dlsym() in '../third_party/glew/src/glew.c' | 71 '-lX11', |
72 '-ldl', | 72 # For dlsym() in '../third_party/glew/src/glew.c' |
73 ], | 73 '-ldl', |
| 74 ], |
| 75 }, |
74 }, | 76 }, |
75 }, | 77 }, |
76 ], | 78 ], |
77 [ 'OS=="mac"', | 79 [ 'OS=="mac"', |
78 { | 80 { |
79 'direct_dependent_settings': { | 81 'all_dependent_settings': { |
80 'libraries': [ | 82 'link_settings': { |
81 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 83 'libraries': [ |
82 ], | 84 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 85 ], |
| 86 }, |
83 }, | 87 }, |
84 }, | 88 }, |
85 ], | 89 ], |
86 [ 'OS=="win"', | 90 [ 'OS=="win"', |
87 { | 91 { |
88 'all_dependent_settings': { | 92 'all_dependent_settings': { |
89 'libraries': [ | 93 'link_settings': { |
90 '-lOpenGL32.lib', | 94 'libraries': [ |
91 ], | 95 '-lOpenGL32.lib', |
| 96 ], |
| 97 }, |
92 }, | 98 }, |
93 }, | 99 }, |
94 ], | 100 ], |
95 ], | 101 ], |
96 }, | 102 }, |
97 { | 103 { |
98 'target_name': 'command_buffer_common', | 104 'target_name': 'command_buffer_common', |
99 'type': 'static_library', | 105 'type': 'static_library', |
100 'include_dirs': [ | 106 'include_dirs': [ |
101 '.', | 107 '.', |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 'dependencies': [ | 190 'dependencies': [ |
185 'gles2_lib', | 191 'gles2_lib', |
186 ], | 192 ], |
187 'sources': [ | 193 'sources': [ |
188 'command_buffer/client/gles2_c_lib.h', | 194 'command_buffer/client/gles2_c_lib.h', |
189 'command_buffer/client/gles2_c_lib.cc', | 195 'command_buffer/client/gles2_c_lib.cc', |
190 'command_buffer/client/gles2_c_lib_autogen.h', | 196 'command_buffer/client/gles2_c_lib_autogen.h', |
191 ], | 197 ], |
192 }, | 198 }, |
193 { | 199 { |
194 'target_name': 'command_buffer_common_unittests', | |
195 'type': 'none', | |
196 'include_dirs': [ | |
197 '.', | |
198 ], | |
199 'dependencies': [ | |
200 'gles2_lib', | |
201 'gles2_implementation', | |
202 'gles2_cmd_helper', | |
203 ], | |
204 'direct_dependent_settings': { | |
205 'sources': [ | |
206 'command_buffer/common/bitfield_helpers_test.cc', | |
207 ], | |
208 }, | |
209 }, | |
210 { | |
211 'target_name': 'command_buffer_client', | 200 'target_name': 'command_buffer_client', |
212 'type': 'static_library', | 201 'type': 'static_library', |
213 'dependencies': [ | 202 'dependencies': [ |
214 'command_buffer_common', | 203 'command_buffer_common', |
215 ], | 204 ], |
216 'sources': [ | 205 'sources': [ |
217 'command_buffer/client/cmd_buffer_helper.cc', | 206 'command_buffer/client/cmd_buffer_helper.cc', |
218 'command_buffer/client/cmd_buffer_helper.h', | 207 'command_buffer/client/cmd_buffer_helper.h', |
219 'command_buffer/client/fenced_allocator.cc', | 208 'command_buffer/client/fenced_allocator.cc', |
220 'command_buffer/client/fenced_allocator.h', | 209 'command_buffer/client/fenced_allocator.h', |
221 'command_buffer/client/id_allocator.cc', | 210 'command_buffer/client/id_allocator.cc', |
222 'command_buffer/client/id_allocator.h', | 211 'command_buffer/client/id_allocator.h', |
223 ], | 212 ], |
224 }, | 213 }, |
225 { | 214 { |
226 'target_name': 'command_buffer_client_unittests', | |
227 'type': 'none', | |
228 'direct_dependent_settings': { | |
229 'sources': [ | |
230 'command_buffer/client/cmd_buffer_helper_test.cc', | |
231 'command_buffer/client/fenced_allocator_test.cc', | |
232 'command_buffer/client/id_allocator_test.cc', | |
233 ], | |
234 }, | |
235 }, | |
236 { | |
237 'target_name': 'command_buffer_service_impl', | 215 'target_name': 'command_buffer_service_impl', |
238 'type': 'static_library', | 216 'type': 'static_library', |
239 'include_dirs': [ | 217 'include_dirs': [ |
240 '..', | 218 '..', |
241 ], | 219 ], |
242 'all_dependent_settings': { | 220 'all_dependent_settings': { |
243 'include_dirs': [ | 221 'include_dirs': [ |
244 '..', | 222 '..', |
245 ], | 223 ], |
246 }, | 224 }, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 'all_dependent_settings': { | 280 'all_dependent_settings': { |
303 'include_dirs': [ | 281 'include_dirs': [ |
304 '..', | 282 '..', |
305 ], | 283 ], |
306 }, | 284 }, |
307 'dependencies': [ | 285 'dependencies': [ |
308 'command_buffer_service_impl', | 286 'command_buffer_service_impl', |
309 'gl_libs', | 287 'gl_libs', |
310 ], | 288 ], |
311 'sources': [ | 289 'sources': [ |
312 '<@(gpu_source_files)', | 290 '<@(gpu_service_source_files)', |
313 ], | 291 ], |
314 }, | 292 }, |
315 { | 293 { |
316 'target_name': 'command_buffer_service_unittests', | |
317 'type': 'none', | |
318 'direct_dependent_settings': { | |
319 'sources': [ | |
320 '<@(gpu_source_files)', | |
321 'command_buffer/common/gles2_cmd_format_test.cc', | |
322 'command_buffer/common/gles2_cmd_format_test_autogen.h', | |
323 'command_buffer/common/gles2_cmd_id_test.cc', | |
324 'command_buffer/common/gles2_cmd_id_test_autogen.h', | |
325 'command_buffer/service/buffer_manager_unittest.cc', | |
326 'command_buffer/service/context_group_unittest.cc', | |
327 'command_buffer/service/cmd_parser_test.cc', | |
328 'command_buffer/service/cmd_parser_test.cc', | |
329 'command_buffer/service/common_decoder_unittest.cc', | |
330 'command_buffer/service/framebuffer_manager_unittest.cc', | |
331 'command_buffer/service/gpu_processor_unittest.cc', | |
332 'command_buffer/service/gl_interface.h', | |
333 'command_buffer/service/gl_interface.cc', | |
334 'command_buffer/service/gl_mock.h', | |
335 'command_buffer/service/gl_mock.cc', | |
336 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', | |
337 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', | |
338 'command_buffer/service/gles2_cmd_decoder_unittest.cc', | |
339 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', | |
340 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', | |
341 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', | |
342 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', | |
343 'command_buffer/service/id_manager_unittest.cc', | |
344 'command_buffer/service/program_manager_unittest.cc', | |
345 'command_buffer/service/renderbuffer_manager_unittest.cc', | |
346 'command_buffer/service/shader_manager_unittest.cc', | |
347 'command_buffer/service/texture_manager_unittest.cc', | |
348 ], | |
349 }, | |
350 }, | |
351 { | |
352 'target_name': 'gpu_plugin', | 294 'target_name': 'gpu_plugin', |
353 'type': 'static_library', | 295 'type': 'static_library', |
354 'dependencies': [ | 296 'dependencies': [ |
355 '../base/base.gyp:base', | 297 '../base/base.gyp:base', |
356 'command_buffer_service', | 298 'command_buffer_service', |
357 ], | 299 ], |
358 'include_dirs': [ | 300 'include_dirs': [ |
359 '..', | 301 '..', |
360 ], | 302 ], |
361 'all_dependent_settings': { | 303 'all_dependent_settings': { |
362 'include_dirs': [ | 304 'include_dirs': [ |
363 '..', | 305 '..', |
364 ], | 306 ], |
365 }, | 307 }, |
366 'sources': [ | 308 'sources': [ |
367 'gpu_plugin/gpu_plugin.cc', | 309 'gpu_plugin/gpu_plugin.cc', |
368 'gpu_plugin/gpu_plugin.h', | 310 'gpu_plugin/gpu_plugin.h', |
369 ], | 311 ], |
370 }, | 312 }, |
371 { | 313 { |
372 'target_name': 'gpu_all_unittests', | 314 'target_name': 'gpu_unittests', |
373 'type': 'executable', | 315 'type': 'executable', |
374 'dependencies': [ | 316 'dependencies': [ |
375 '../testing/gmock.gyp:gmock', | 317 '../testing/gmock.gyp:gmock', |
376 '../testing/gmock.gyp:gmockmain', | 318 '../testing/gmock.gyp:gmockmain', |
377 '../testing/gtest.gyp:gtest', | 319 '../testing/gtest.gyp:gtest', |
378 'command_buffer_client', | 320 'command_buffer_client', |
379 'command_buffer_client_unittests', | |
380 'command_buffer_common', | 321 'command_buffer_common', |
381 'command_buffer_common_unittests', | |
382 'command_buffer_service_impl', | 322 'command_buffer_service_impl', |
383 'command_buffer_service_unittests', | 323 'gles2_lib', |
| 324 'gles2_implementation', |
| 325 'gles2_cmd_helper', |
| 326 ], |
| 327 'sources': [ |
| 328 '<@(gpu_service_source_files)', |
| 329 'command_buffer/client/cmd_buffer_helper_test.cc', |
| 330 'command_buffer/client/fenced_allocator_test.cc', |
| 331 'command_buffer/client/id_allocator_test.cc', |
| 332 'command_buffer/common/bitfield_helpers_test.cc', |
| 333 'command_buffer/common/gles2_cmd_format_test.cc', |
| 334 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 335 'command_buffer/common/gles2_cmd_id_test.cc', |
| 336 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 337 'command_buffer/common/gles2_cmd_format_test.cc', |
| 338 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 339 'command_buffer/common/gles2_cmd_id_test.cc', |
| 340 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 341 'command_buffer/common/gles2_cmd_format_test.cc', |
| 342 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 343 'command_buffer/common/gles2_cmd_id_test.cc', |
| 344 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 345 'command_buffer/service/buffer_manager_unittest.cc', |
| 346 'command_buffer/service/context_group_unittest.cc', |
| 347 'command_buffer/service/cmd_parser_test.cc', |
| 348 'command_buffer/service/cmd_parser_test.cc', |
| 349 'command_buffer/service/common_decoder_unittest.cc', |
| 350 'command_buffer/service/framebuffer_manager_unittest.cc', |
| 351 'command_buffer/service/gpu_processor_unittest.cc', |
| 352 'command_buffer/service/gl_interface.h', |
| 353 'command_buffer/service/gl_interface.cc', |
| 354 'command_buffer/service/gl_mock.h', |
| 355 'command_buffer/service/gl_mock.cc', |
| 356 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', |
| 357 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', |
| 358 'command_buffer/service/gles2_cmd_decoder_unittest.cc', |
| 359 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', |
| 360 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', |
| 361 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', |
| 362 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', |
| 363 'command_buffer/service/id_manager_unittest.cc', |
| 364 'command_buffer/service/program_manager_unittest.cc', |
| 365 'command_buffer/service/renderbuffer_manager_unittest.cc', |
| 366 'command_buffer/service/shader_manager_unittest.cc', |
| 367 'command_buffer/service/texture_manager_unittest.cc', |
384 ], | 368 ], |
385 }, | 369 }, |
386 { | 370 { |
387 'target_name': 'gles2_demo_lib', | 371 'target_name': 'gles2_demo_lib', |
388 'type': 'static_library', | 372 'type': 'static_library', |
389 'dependencies': [ | 373 'dependencies': [ |
390 'command_buffer_client', | 374 'command_buffer_client', |
391 'gles2_lib', | 375 'gles2_lib', |
392 'gles2_c_lib', | 376 'gles2_c_lib', |
393 ], | 377 ], |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 }, | 434 }, |
451 ], | 435 ], |
452 ], | 436 ], |
453 } | 437 } |
454 | 438 |
455 # Local Variables: | 439 # Local Variables: |
456 # tab-width:2 | 440 # tab-width:2 |
457 # indent-tabs-mode:nil | 441 # indent-tabs-mode:nil |
458 # End: | 442 # End: |
459 # vim: set expandtab tabstop=2 shiftwidth=2: | 443 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |