1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'nacl_win64_target': 0,
14 # Library emulates GLES2 using command_buffers.
15 'target_name': 'gles2_implementation',
16 'type': '<(component)',
18 '../base/base.gyp:base',
19 '../third_party/khronos/khronos.gyp:khronos_headers',
20 '../ui/gfx/gfx.gyp:gfx_geometry',
22 'command_buffer/command_buffer.gyp:gles2_utils',
26 'GLES2_IMPL_IMPLEMENTATION',
29 '<@(gles2_implementation_source_files)',
31 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
32 'msvs_disabled_warnings': [4267, ],
35 'target_name': 'gl_in_process_context',
36 'type': '<(component)',
38 'gles2_implementation',
40 '../base/base.gyp:base',
41 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
42 '../ui/gfx/gfx.gyp:gfx_geometry',
46 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
49 'command_buffer/client/gl_in_process_context.h',
50 'command_buffer/client/gl_in_process_context.cc',
51 'command_buffer/client/gl_in_process_context_export.h',
55 # Library emulates GLES2 using command_buffers.
56 'target_name': 'gles2_implementation_client_side_arrays',
57 'type': '<(component)',
59 'GLES2_IMPL_IMPLEMENTATION',
60 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
63 '../base/base.gyp:base',
64 '../third_party/khronos/khronos.gyp:khronos_headers',
66 '../ui/gfx/gfx.gyp:gfx_geometry',
67 '../ui/gfx/gfx.gyp:gfx',
68 'command_buffer/command_buffer.gyp:gles2_utils',
72 '<@(gles2_implementation_source_files)',
74 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
75 'msvs_disabled_warnings': [ 4267, ],
78 # Library emulates GLES2 using command_buffers.
79 'target_name': 'gles2_implementation_client_side_arrays_no_check',
80 'type': '<(component)',
82 'GLES2_IMPL_IMPLEMENTATION',
83 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
84 'GLES2_CONFORMANCE_TESTS=1',
87 '../base/base.gyp:base',
88 '../third_party/khronos/khronos.gyp:khronos_headers',
89 '../ui/gfx/gfx.gyp:gfx',
90 '../ui/gfx/gfx.gyp:gfx_geometry',
91 'command_buffer/command_buffer.gyp:gles2_utils',
95 '<@(gles2_implementation_source_files)',
97 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
98 'msvs_disabled_warnings': [ 4267, ],
101 # Stub to expose gles2_implemenation in C instead of C++.
102 # so GLES2 C programs can work with no changes.
103 'target_name': 'gles2_c_lib',
104 'type': '<(component)',
106 '../base/base.gyp:base',
107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
108 'command_buffer/command_buffer.gyp:gles2_utils',
109 'command_buffer_client',
110 'gles2_implementation',
113 'GLES2_C_LIB_IMPLEMENTATION',
116 '<@(gles2_c_lib_source_files)',
118 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
119 'msvs_disabled_warnings': [4267, ],
122 # Same as gles2_c_lib except with no parameter checking. Required for
123 # OpenGL ES 2.0 conformance tests.
124 'target_name': 'gles2_c_lib_nocheck',
125 'type': '<(component)',
127 'GLES2_C_LIB_IMPLEMENTATION',
128 'GLES2_CONFORMANCE_TESTS=1',
131 '../base/base.gyp:base',
132 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
133 'command_buffer/command_buffer.gyp:gles2_utils',
134 'command_buffer_client',
135 'gles2_implementation_client_side_arrays_no_check',
138 '<@(gles2_c_lib_source_files)',
142 'target_name': 'angle_unittests',
143 'type': '<(gtest_target_type)',
145 '../base/base.gyp:base',
146 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
147 '../testing/gmock.gyp:gmock',
148 '../testing/gtest.gyp:gtest',
149 '<(angle_path)/src/build_angle.gyp:translator_static',
152 'ANGLE_DIR': '<(angle_path)',
155 '../third_party/angle/tests/preprocessor_tests/preprocessor_tests.gypi',
156 '../third_party/angle/tests/compiler_tests/compiler_tests.gypi',
160 '<(angle_path)/include',
162 '<(angle_path)/src/compiler/preprocessor',
163 '<(angle_path)/tests',
166 'angle_unittest_main.cc',
170 'target_name': 'gpu_unittests',
171 'type': '<(gtest_target_type)',
173 '../base/base.gyp:base',
174 '../base/base.gyp:test_support_base',
175 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
176 '../testing/gmock.gyp:gmock',
177 '../testing/gtest.gyp:gtest',
178 '<(angle_path)/src/build_angle.gyp:translator',
179 '../ui/gl/gl.gyp:gl',
180 '../ui/gfx/gfx.gyp:gfx',
181 '../ui/gfx/gfx.gyp:gfx_geometry',
182 'command_buffer/command_buffer.gyp:gles2_utils',
183 'command_buffer_client',
184 'command_buffer_common',
185 'command_buffer_service',
187 'gpu_unittest_utils',
188 'gles2_implementation_client_side_arrays',
192 'GLES2_C_LIB_IMPLEMENTATION',
195 '<@(gles2_c_lib_source_files)',
196 'command_buffer/client/buffer_tracker_unittest.cc',
197 'command_buffer/client/client_test_helper.cc',
198 'command_buffer/client/client_test_helper.h',
199 'command_buffer/client/cmd_buffer_helper_test.cc',
200 'command_buffer/client/fenced_allocator_test.cc',
201 'command_buffer/client/gles2_implementation_unittest.cc',
202 'command_buffer/client/mapped_memory_unittest.cc',
203 'command_buffer/client/query_tracker_unittest.cc',
204 'command_buffer/client/program_info_manager_unittest.cc',
205 'command_buffer/client/ring_buffer_test.cc',
206 'command_buffer/client/transfer_buffer_unittest.cc',
207 'command_buffer/client/vertex_array_object_manager_unittest.cc',
208 'command_buffer/common/bitfield_helpers_test.cc',
209 'command_buffer/common/command_buffer_mock.cc',
210 'command_buffer/common/command_buffer_mock.h',
211 'command_buffer/common/command_buffer_shared_test.cc',
212 'command_buffer/common/debug_marker_manager_unittest.cc',
213 'command_buffer/common/gles2_cmd_format_test.cc',
214 'command_buffer/common/gles2_cmd_format_test_autogen.h',
215 'command_buffer/common/gles2_cmd_utils_unittest.cc',
216 'command_buffer/common/id_allocator_test.cc',
217 'command_buffer/common/trace_event.h',
218 'command_buffer/common/unittest_main.cc',
219 'command_buffer/service/async_pixel_transfer_delegate_mock.h',
220 'command_buffer/service/async_pixel_transfer_delegate_mock.cc',
221 'command_buffer/service/async_pixel_transfer_manager_mock.h',
222 'command_buffer/service/async_pixel_transfer_manager_mock.cc',
223 'command_buffer/service/buffer_manager_unittest.cc',
224 'command_buffer/service/cmd_parser_test.cc',
225 'command_buffer/service/command_buffer_service_unittest.cc',
226 'command_buffer/service/common_decoder_unittest.cc',
227 'command_buffer/service/context_group_unittest.cc',
228 'command_buffer/service/feature_info_unittest.cc',
229 'command_buffer/service/framebuffer_manager_unittest.cc',
230 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
231 'command_buffer/service/gles2_cmd_decoder_unittest.h',
232 'command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h',
233 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
234 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
235 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
236 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
237 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
238 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
239 'command_buffer/service/gles2_cmd_decoder_unittest_async_pixel.cc',
240 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
241 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
242 'command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc',
243 'command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc',
244 'command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc',
245 'command_buffer/service/gles2_cmd_decoder_unittest_programs.cc',
246 'command_buffer/service/gles2_cmd_decoder_unittest_textures.cc',
247 'command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc',
248 'command_buffer/service/gl_surface_mock.cc',
249 'command_buffer/service/gl_surface_mock.h',
250 'command_buffer/service/gpu_scheduler_unittest.cc',
251 'command_buffer/service/gpu_service_test.cc',
252 'command_buffer/service/gpu_service_test.h',
253 'command_buffer/service/id_manager_unittest.cc',
254 'command_buffer/service/mailbox_manager_unittest.cc',
255 'command_buffer/service/memory_program_cache_unittest.cc',
256 'command_buffer/service/mocks.cc',
257 'command_buffer/service/mocks.h',
258 'command_buffer/service/program_manager_unittest.cc',
259 'command_buffer/service/query_manager_unittest.cc',
260 'command_buffer/service/renderbuffer_manager_unittest.cc',
261 'command_buffer/service/program_cache_unittest.cc',
262 'command_buffer/service/shader_manager_unittest.cc',
263 'command_buffer/service/shader_translator_unittest.cc',
264 'command_buffer/service/test_helper.cc',
265 'command_buffer/service/test_helper.h',
266 'command_buffer/service/texture_manager_unittest.cc',
267 'command_buffer/service/transfer_buffer_manager_unittest.cc',
268 'command_buffer/service/vertex_attrib_manager_unittest.cc',
269 'command_buffer/service/vertex_array_manager_unittest.cc',
270 'command_buffer/service/gpu_tracer_unittest.cc',
271 'config/gpu_blacklist_unittest.cc',
272 'config/gpu_control_list_entry_unittest.cc',
273 'config/gpu_control_list_number_info_unittest.cc',
274 'config/gpu_control_list_os_info_unittest.cc',
275 'config/gpu_control_list_string_info_unittest.cc',
276 'config/gpu_control_list_unittest.cc',
277 'config/gpu_control_list_version_info_unittest.cc',
278 'config/gpu_driver_bug_list_unittest.cc',
279 'config/gpu_info_collector_unittest.cc',
280 'config/gpu_info_unittest.cc',
281 'config/gpu_test_config_unittest.cc',
282 'config/gpu_test_expectations_parser_unittest.cc',
283 'config/gpu_util_unittest.cc',
286 ['OS == "android"', {
288 '../testing/android/native_test.gyp:native_test_native_code',
291 # See http://crbug.com/162998#c4 for why this is needed.
292 ['OS=="linux" and use_allocator!="none"', {
294 '../base/allocator/allocator.gyp:allocator',
298 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
299 'msvs_disabled_warnings': [ 4267, ],
302 'target_name': 'gl_tests',
303 'type': '<(gtest_target_type)',
305 '../base/base.gyp:base',
306 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
307 '../testing/gmock.gyp:gmock',
308 '../testing/gtest.gyp:gtest',
309 '<(angle_path)/src/build_angle.gyp:translator',
310 '../ui/gfx/gfx.gyp:gfx',
311 '../ui/gfx/gfx.gyp:gfx_geometry',
312 '../ui/gl/gl.gyp:gl',
313 'command_buffer/command_buffer.gyp:gles2_utils',
314 'command_buffer_client',
315 'command_buffer_common',
316 'command_buffer_service',
318 'gpu_unittest_utils',
319 'gles2_implementation_client_side_arrays',
324 'GLES2_C_LIB_IMPLEMENTATION',
325 'GL_GLEXT_PROTOTYPES',
328 '<@(gles2_c_lib_source_files)',
329 'command_buffer/tests/compressed_texture_test.cc',
330 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
331 'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
332 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
333 'command_buffer/tests/gl_depth_texture_unittest.cc',
334 'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
335 'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
336 'command_buffer/tests/gl_manager.cc',
337 'command_buffer/tests/gl_manager.h',
338 'command_buffer/tests/gl_pointcoord_unittest.cc',
339 'command_buffer/tests/gl_program_unittest.cc',
340 'command_buffer/tests/gl_query_unittest.cc',
341 'command_buffer/tests/gl_readback_unittest.cc',
342 'command_buffer/tests/gl_shared_resources_unittest.cc',
343 'command_buffer/tests/gl_stream_draw_unittest.cc',
344 'command_buffer/tests/gl_test_utils.cc',
345 'command_buffer/tests/gl_test_utils.h',
346 'command_buffer/tests/gl_tests_main.cc',
347 'command_buffer/tests/gl_texture_mailbox_unittest.cc',
348 'command_buffer/tests/gl_texture_storage_unittest.cc',
349 'command_buffer/tests/gl_unittest.cc',
350 'command_buffer/tests/gl_unittests_android.cc',
351 'command_buffer/tests/gl_virtual_contexts_unittest.cc',
352 'command_buffer/tests/occlusion_query_unittest.cc',
355 ['OS == "android"', {
357 '../testing/android/native_test.gyp:native_test_native_code',
362 '../third_party/angle/src/build_angle.gyp:libEGL',
363 '../third_party/angle/src/build_angle.gyp:libGLESv2',
367 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
368 'msvs_disabled_warnings': [ 4267, ],
371 'target_name': 'gpu_unittest_utils',
372 'type': 'static_library',
374 '../testing/gmock.gyp:gmock',
375 '../testing/gtest.gyp:gtest',
376 '../third_party/khronos/khronos.gyp:khronos_headers',
377 '../ui/gl/gl.gyp:gl_unittest_utils',
384 'command_buffer/service/gles2_cmd_decoder_mock.cc',
385 'command_buffer/service/error_state_mock.cc',
386 'command_buffer/client/gles2_interface_stub.cc',
387 'command_buffer/client/gles2_interface_stub.h',
392 ['component=="static_library"', {
395 'target_name': 'disk_cache_proto',
396 'type': 'static_library',
397 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
399 'proto_in_dir': 'command_buffer/service',
400 'proto_out_dir': 'gpu/command_buffer/service',
402 'includes': [ '../build/protoc.gypi' ],
405 'target_name': 'gpu',
408 'command_buffer_client',
409 'command_buffer_common',
410 'command_buffer_service',
418 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
419 'msvs_disabled_warnings': [4267, ],
422 'target_name': 'command_buffer_common',
423 'type': 'static_library',
425 'command_buffer_common.gypi',
428 '../base/base.gyp:base',
429 'command_buffer/command_buffer.gyp:gles2_utils',
431 'export_dependent_settings': [
432 '../base/base.gyp:base',
436 # Library helps make GLES2 command buffers.
437 'target_name': 'gles2_cmd_helper',
438 'type': 'static_library',
440 'gles2_cmd_helper.gypi',
443 'command_buffer_client',
445 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
446 'msvs_disabled_warnings': [4267, ],
449 'target_name': 'command_buffer_client',
450 'type': 'static_library',
452 'command_buffer_client.gypi',
455 'command_buffer_common',
457 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
458 'msvs_disabled_warnings': [4267, ],
461 'target_name': 'command_buffer_service',
462 'type': 'static_library',
464 'command_buffer_service.gypi',
467 'command_buffer_common',
470 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
471 'msvs_disabled_warnings': [4267, ],
474 'target_name': 'gpu_ipc',
475 'type': 'static_library',
480 'command_buffer_common',
484 'target_name': 'gpu_config',
485 'type': 'static_library',
492 { # component != static_library
495 'target_name': 'disk_cache_proto',
496 'type': 'static_library',
497 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
499 'proto_in_dir': 'command_buffer/service',
500 'proto_out_dir': 'gpu/command_buffer/service',
502 'includes': [ '../build/protoc.gypi' ],
505 'target_name': 'gpu',
506 'type': 'shared_library',
508 'command_buffer_client.gypi',
509 'command_buffer_common.gypi',
510 'command_buffer_service.gypi',
511 'gles2_cmd_helper.gypi',
516 'GPU_IMPLEMENTATION',
522 '../base/base.gyp:base',
523 'command_buffer/command_buffer.gyp:gles2_utils',
526 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
527 'msvs_disabled_warnings': [4267, ],
530 'target_name': 'command_buffer_common',
537 # Library helps make GLES2 command buffers.
538 'target_name': 'gles2_cmd_helper',
543 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
544 'msvs_disabled_warnings': [4267, ],
547 'target_name': 'command_buffer_client',
554 'target_name': 'command_buffer_service',
561 'target_name': 'gpu_ipc',
569 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
572 'target_name': 'command_buffer_common_win64',
573 'type': 'static_library',
575 'nacl_win64_target': 1,
578 'command_buffer_common.gypi',
581 '../base/base.gyp:base_win64',
584 '<@(nacl_win64_defines)',
585 'GPU_IMPLEMENTATION',
589 'msvs_target_platform': 'x64',
594 'target_name': 'gpu_ipc_win64',
595 'type': 'static_library',
597 'nacl_win64_target': 1,
603 '../base/base.gyp:base_win64',
604 '../ipc/ipc.gyp:ipc_win64',
605 'command_buffer_common_win64',
608 '<@(nacl_win64_defines)',
609 'GPU_IMPLEMENTATION',
613 'msvs_target_platform': 'x64',
619 ['OS == "android"', {
622 'target_name': 'gl_tests_apk',
628 'test_suite_name': 'gl_tests',
631 '../build/apk_test.gypi',
635 'target_name': 'gpu_unittests_apk',
641 'test_suite_name': 'gpu_unittests',
643 'includes': [ '../build/apk_test.gypi' ],