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 # GN version: //gpu/command_buffer/client:gles2_implementation
16 'target_name': 'gles2_implementation',
17 'type': '<(component)',
19 '../base/base.gyp:base',
20 '../third_party/khronos/khronos.gyp:khronos_headers',
21 '../ui/gfx/gfx.gyp:gfx_geometry',
23 'command_buffer/command_buffer.gyp:gles2_utils',
27 'GLES2_IMPL_IMPLEMENTATION',
30 '<@(gles2_implementation_source_files)',
33 # Disable LTO due to ELF section name out of range
35 '../build/android/disable_lto.gypi',
37 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
38 'msvs_disabled_warnings': [4267, ],
41 # GN version: //gpu/command_buffer/client:gl_in_process_context
42 'target_name': 'gl_in_process_context',
43 'type': '<(component)',
45 'command_buffer/command_buffer.gyp:gles2_utils',
46 'gles2_implementation',
48 '../base/base.gyp:base',
49 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
50 '../ui/gfx/gfx.gyp:gfx_geometry',
54 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
57 'command_buffer/client/gl_in_process_context.cc',
58 'command_buffer/client/gl_in_process_context.h',
59 'command_buffer/client/gl_in_process_context_export.h',
63 # Library emulates GLES2 using command_buffers.
64 'target_name': 'gles2_implementation_no_check',
65 'type': '<(component)',
67 'GLES2_IMPL_IMPLEMENTATION',
68 'GLES2_CONFORMANCE_TESTS=1',
71 '../base/base.gyp:base',
72 '../third_party/khronos/khronos.gyp:khronos_headers',
73 '../ui/gfx/gfx.gyp:gfx',
74 '../ui/gfx/gfx.gyp:gfx_geometry',
75 'command_buffer/command_buffer.gyp:gles2_utils',
79 '<@(gles2_implementation_source_files)',
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
82 'msvs_disabled_warnings': [ 4267, ],
85 # Stub to expose gles2_implemenation in C instead of C++.
86 # so GLES2 C programs can work with no changes.
87 # GN version: //gpu/command_buffer/client:gles2_c_lib
88 'target_name': 'gles2_c_lib',
89 'type': '<(component)',
91 '../base/base.gyp:base',
92 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
93 'command_buffer/command_buffer.gyp:gles2_utils',
94 'command_buffer_client',
97 'GLES2_C_LIB_IMPLEMENTATION',
100 '<@(gles2_c_lib_source_files)',
102 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
103 'msvs_disabled_warnings': [4267, ],
106 # GN version: //gpu/command_buffer/client:gles2_c_lib_nocheck
107 # Same as gles2_c_lib except with no parameter checking. Required for
108 # OpenGL ES 2.0 conformance tests.
109 'target_name': 'gles2_c_lib_nocheck',
110 'type': '<(component)',
112 'GLES2_C_LIB_IMPLEMENTATION',
113 'GLES2_CONFORMANCE_TESTS=1',
116 '../base/base.gyp:base',
117 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
118 'command_buffer/command_buffer.gyp:gles2_utils',
119 'command_buffer_client',
120 'gles2_implementation_no_check',
123 '<@(gles2_c_lib_source_files)',
127 # GN version: //gpu:angle_unittests
128 # TODO(kbr): port this refactoring to the GN build.
129 'target_name': 'angle_unittests',
130 'type': '<(gtest_target_type)',
132 '../third_party/angle/build/common_defines.gypi',
133 '../third_party/angle/src/tests/angle_unittests.gypi',
136 '../base/base.gyp:base',
137 '../base/base.gyp:test_support_base',
141 '../third_party/angle/include',
144 'angle_unittest_main.cc',
148 # GN version: //gpu:gpu_unittests
149 'target_name': 'gpu_unittests',
150 'type': '<(gtest_target_type)',
152 '../base/base.gyp:base',
153 '../base/base.gyp:test_support_base',
154 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
155 '../testing/gmock.gyp:gmock',
156 '../testing/gtest.gyp:gtest',
157 '<(angle_path)/src/angle.gyp:translator',
158 '../ui/gl/gl.gyp:gl',
159 '../ui/gfx/gfx.gyp:gfx',
160 '../ui/gfx/gfx.gyp:gfx_geometry',
161 '../ui/gfx/gfx.gyp:gfx_test_support',
162 'command_buffer/command_buffer.gyp:gles2_utils',
163 'command_buffer_client',
164 'command_buffer_common',
165 'command_buffer_service',
167 'gpu_unittest_utils',
168 'gles2_implementation',
173 # Note: sources list duplicated in GN build.
174 'command_buffer/client/buffer_tracker_unittest.cc',
175 'command_buffer/client/client_test_helper.cc',
176 'command_buffer/client/client_test_helper.h',
177 'command_buffer/client/cmd_buffer_helper_test.cc',
178 'command_buffer/client/fenced_allocator_test.cc',
179 'command_buffer/client/gles2_implementation_unittest.cc',
180 'command_buffer/client/mapped_memory_unittest.cc',
181 'command_buffer/client/program_info_manager_unittest.cc',
182 'command_buffer/client/query_tracker_unittest.cc',
183 'command_buffer/client/ring_buffer_test.cc',
184 'command_buffer/client/transfer_buffer_unittest.cc',
185 'command_buffer/client/vertex_array_object_manager_unittest.cc',
186 'command_buffer/common/bitfield_helpers_test.cc',
187 'command_buffer/common/command_buffer_mock.cc',
188 'command_buffer/common/command_buffer_mock.h',
189 'command_buffer/common/command_buffer_shared_test.cc',
190 'command_buffer/common/debug_marker_manager_unittest.cc',
191 'command_buffer/common/gles2_cmd_format_test.cc',
192 'command_buffer/common/gles2_cmd_format_test_autogen.h',
193 'command_buffer/common/gles2_cmd_utils_unittest.cc',
194 'command_buffer/common/id_allocator_test.cc',
195 'command_buffer/common/trace_event.h',
196 'command_buffer/common/unittest_main.cc',
197 'command_buffer/service/async_pixel_transfer_delegate_mock.cc',
198 'command_buffer/service/async_pixel_transfer_delegate_mock.h',
199 'command_buffer/service/async_pixel_transfer_manager_mock.cc',
200 'command_buffer/service/async_pixel_transfer_manager_mock.h',
201 'command_buffer/service/buffer_manager_unittest.cc',
202 'command_buffer/service/cmd_parser_test.cc',
203 'command_buffer/service/command_buffer_service_unittest.cc',
204 'command_buffer/service/common_decoder_unittest.cc',
205 'command_buffer/service/context_group_unittest.cc',
206 'command_buffer/service/feature_info_unittest.cc',
207 'command_buffer/service/framebuffer_manager_unittest.cc',
208 'command_buffer/service/gl_surface_mock.cc',
209 'command_buffer/service/gl_surface_mock.h',
210 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
211 'command_buffer/service/gles2_cmd_decoder_unittest.h',
212 'command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h',
213 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
214 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
215 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
216 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
217 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
218 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
219 'command_buffer/service/gles2_cmd_decoder_unittest_async_pixel.cc',
220 'command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc',
221 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
222 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
223 'command_buffer/service/gles2_cmd_decoder_unittest_buffers.cc',
224 'command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc',
225 'command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc',
226 'command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc',
227 'command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h',
228 'command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc',
229 'command_buffer/service/gles2_cmd_decoder_unittest_programs.cc',
230 'command_buffer/service/gles2_cmd_decoder_unittest_textures.cc',
231 'command_buffer/service/gles2_cmd_decoder_unittest_valuebuffer.cc',
232 'command_buffer/service/gpu_scheduler_unittest.cc',
233 'command_buffer/service/gpu_service_test.cc',
234 'command_buffer/service/gpu_service_test.h',
235 'command_buffer/service/gpu_tracer_unittest.cc',
236 'command_buffer/service/id_manager_unittest.cc',
237 'command_buffer/service/mailbox_manager_unittest.cc',
238 'command_buffer/service/memory_program_cache_unittest.cc',
239 'command_buffer/service/mocks.cc',
240 'command_buffer/service/mocks.h',
241 'command_buffer/service/program_cache_unittest.cc',
242 'command_buffer/service/program_manager_unittest.cc',
243 'command_buffer/service/query_manager_unittest.cc',
244 'command_buffer/service/renderbuffer_manager_unittest.cc',
245 'command_buffer/service/shader_manager_unittest.cc',
246 'command_buffer/service/shader_translator_cache_unittest.cc',
247 'command_buffer/service/shader_translator_unittest.cc',
248 'command_buffer/service/test_helper.cc',
249 'command_buffer/service/test_helper.h',
250 'command_buffer/service/texture_manager_unittest.cc',
251 'command_buffer/service/transfer_buffer_manager_unittest.cc',
252 'command_buffer/service/valuebuffer_manager_unittest.cc',
253 'command_buffer/service/vertex_array_manager_unittest.cc',
254 'command_buffer/service/vertex_attrib_manager_unittest.cc',
255 'config/gpu_blacklist_unittest.cc',
256 'config/gpu_control_list_entry_unittest.cc',
257 'config/gpu_control_list_number_info_unittest.cc',
258 'config/gpu_control_list_os_info_unittest.cc',
259 'config/gpu_control_list_unittest.cc',
260 'config/gpu_control_list_version_info_unittest.cc',
261 'config/gpu_driver_bug_list_unittest.cc',
262 'config/gpu_info_collector_unittest.cc',
263 'config/gpu_info_unittest.cc',
264 'config/gpu_test_config_unittest.cc',
265 'config/gpu_test_expectations_parser_unittest.cc',
266 'config/gpu_util_unittest.cc',
269 ['OS == "android"', {
271 '../testing/android/native_test.gyp:native_test_native_code',
274 # See http://crbug.com/162998#c4 for why this is needed.
275 ['OS=="linux" and use_allocator!="none"', {
277 '../base/allocator/allocator.gyp:allocator',
281 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
282 'msvs_disabled_warnings': [ 4267, ],
285 # GN version: //gpu/gpu_perftests
286 'target_name': 'gpu_perftests',
287 'type': '<(gtest_target_type)',
289 '../base/base.gyp:base',
290 '../base/base.gyp:test_support_base',
291 '../testing/gmock.gyp:gmock',
292 '../testing/gtest.gyp:gtest',
293 '../testing/perf/perf_test.gyp:perf_test',
294 '../ui/gfx/gfx.gyp:gfx_geometry',
295 '../ui/gl/gl.gyp:gl',
296 'command_buffer_service',
299 'perftests/measurements.cc',
300 'perftests/run_all_tests.cc',
301 'perftests/texture_upload_perftest.cc',
307 '../testing/android/native_test.gyp:native_test_native_code',
311 # See http://crbug.com/162998#c4 for why this is needed.
312 ['OS=="linux" and use_allocator!="none"',
315 '../base/allocator/allocator.gyp:allocator',
322 # GN version: //gpu:gl_tests
323 'target_name': 'gl_tests',
324 'type': '<(gtest_target_type)',
326 '../base/base.gyp:base',
327 '../base/base.gyp:test_support_base',
328 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
329 '../testing/gmock.gyp:gmock',
330 '../testing/gtest.gyp:gtest',
331 '<(angle_path)/src/angle.gyp:translator',
332 '../ui/gfx/gfx.gyp:gfx',
333 '../ui/gfx/gfx.gyp:gfx_test_support',
334 '../ui/gfx/gfx.gyp:gfx_geometry',
335 '../ui/gl/gl.gyp:gl',
336 'command_buffer/command_buffer.gyp:gles2_utils',
337 'command_buffer_client',
338 'command_buffer_common',
339 'command_buffer_service',
341 'gpu_unittest_utils',
342 'gles2_implementation',
348 'GL_GLEXT_PROTOTYPES',
351 # Note: sources list duplicated in GN build.
352 'command_buffer/tests/compressed_texture_test.cc',
353 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
354 'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
355 'command_buffer/tests/gl_chromium_path_rendering_unittest.cc',
356 'command_buffer/tests/gl_clear_framebuffer_unittest.cc',
357 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
358 'command_buffer/tests/gl_depth_texture_unittest.cc',
359 'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
360 'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
361 'command_buffer/tests/gl_manager.cc',
362 'command_buffer/tests/gl_manager.h',
363 'command_buffer/tests/gl_pointcoord_unittest.cc',
364 'command_buffer/tests/gl_program_unittest.cc',
365 'command_buffer/tests/gl_query_unittest.cc',
366 'command_buffer/tests/gl_readback_unittest.cc',
367 'command_buffer/tests/gl_shared_resources_unittest.cc',
368 'command_buffer/tests/gl_stream_draw_unittest.cc',
369 'command_buffer/tests/gl_test_utils.cc',
370 'command_buffer/tests/gl_test_utils.h',
371 'command_buffer/tests/gl_tests_main.cc',
372 'command_buffer/tests/gl_texture_mailbox_unittest.cc',
373 'command_buffer/tests/gl_texture_storage_unittest.cc',
374 'command_buffer/tests/gl_unittest.cc',
375 'command_buffer/tests/gl_unittests_android.cc',
376 'command_buffer/tests/gl_virtual_contexts_unittest.cc',
377 'command_buffer/tests/occlusion_query_unittest.cc',
380 ['OS == "android"', {
382 '../testing/android/native_test.gyp:native_test_native_code',
387 '../third_party/angle/src/angle.gyp:libEGL',
388 '../third_party/angle/src/angle.gyp:libGLESv2',
392 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
393 'msvs_disabled_warnings': [ 4267, ],
396 # GN version: //gpu:test_support
397 'target_name': 'gpu_unittest_utils',
398 'type': 'static_library',
400 '../testing/gmock.gyp:gmock',
401 '../testing/gtest.gyp:gtest',
402 '../third_party/khronos/khronos.gyp:khronos_headers',
403 '../ui/gl/gl.gyp:gl_unittest_utils',
410 'command_buffer/client/gles2_interface_stub.cc',
411 'command_buffer/client/gles2_interface_stub.h',
412 'command_buffer/service/error_state_mock.cc',
413 'command_buffer/service/gles2_cmd_decoder_mock.cc',
418 ['component=="static_library"', {
421 # GN version: //gpu/command_buffer/service:disk_cache_proto
422 'target_name': 'disk_cache_proto',
423 'type': 'static_library',
424 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
426 'proto_in_dir': 'command_buffer/service',
427 'proto_out_dir': 'gpu/command_buffer/service',
429 'includes': [ '../build/protoc.gypi' ],
433 'target_name': 'gpu',
436 'command_buffer_client',
437 'command_buffer_common',
438 'command_buffer_service',
446 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
447 'msvs_disabled_warnings': [4267, ],
450 # GN version: //gpu/command_buffer/common
451 'target_name': 'command_buffer_common',
452 'type': 'static_library',
454 'command_buffer_common.gypi',
457 '../base/base.gyp:base',
458 'command_buffer/command_buffer.gyp:gles2_utils',
460 'export_dependent_settings': [
461 '../base/base.gyp:base',
465 # Library helps make GLES2 command buffers.
466 # GN version: //gpu/command_buffer/client:gles2_cmd_helper
467 'target_name': 'gles2_cmd_helper',
468 'type': 'static_library',
470 'gles2_cmd_helper.gypi',
473 'command_buffer_client',
475 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
476 'msvs_disabled_warnings': [4267, ],
479 # GN version: //gpu/command_buffer/client
480 'target_name': 'command_buffer_client',
481 'type': 'static_library',
483 'command_buffer_client.gypi',
486 'command_buffer_common',
488 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
489 'msvs_disabled_warnings': [4267, ],
492 # GN version: //gpu/command_buffer/service
493 'target_name': 'command_buffer_service',
494 'type': 'static_library',
496 'command_buffer_service.gypi',
497 '../build/android/increase_size_for_speed.gypi',
498 # Disable LTO due to ELF section name out of range
500 '../build/android/disable_lto.gypi',
503 'command_buffer_common',
506 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
507 'msvs_disabled_warnings': [4267, ],
510 # GN version: //gpu/ipc
511 'target_name': 'gpu_ipc',
512 'type': 'static_library',
517 'command_buffer_common',
521 'target_name': 'gpu_config',
522 'type': 'static_library',
529 { # component != static_library
532 # GN version: //gpu/command_buffer/service:disk_cache_proto
533 'target_name': 'disk_cache_proto',
534 'type': 'static_library',
535 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
537 'proto_in_dir': 'command_buffer/service',
538 'proto_out_dir': 'gpu/command_buffer/service',
540 'includes': [ '../build/protoc.gypi' ],
544 'target_name': 'gpu',
545 'type': 'shared_library',
547 'command_buffer_client.gypi',
548 'command_buffer_common.gypi',
549 'command_buffer_service.gypi',
550 'gles2_cmd_helper.gypi',
553 '../build/android/increase_size_for_speed.gypi',
556 'GPU_IMPLEMENTATION',
562 '../base/base.gyp:base',
563 'command_buffer/command_buffer.gyp:gles2_utils',
566 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
567 'msvs_disabled_warnings': [4267, ],
570 # GN version: //gpu/command_buffer/common
571 'target_name': 'command_buffer_common',
578 # Library helps make GLES2 command buffers.
579 # GN version: //gpu/command_buffer/client:gles2_cmd_helper
580 'target_name': 'gles2_cmd_helper',
585 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
586 'msvs_disabled_warnings': [4267, ],
589 # GN version: //gpu/command_buffer/client
590 'target_name': 'command_buffer_client',
597 # GN version: //gpu/command_buffer/service
598 'target_name': 'command_buffer_service',
605 # GN version: //gpu/ipc
606 'target_name': 'gpu_ipc',
614 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
617 'target_name': 'command_buffer_common_win64',
618 'type': 'static_library',
620 'nacl_win64_target': 1,
623 'command_buffer_common.gypi',
626 '../base/base.gyp:base_win64',
629 '<@(nacl_win64_defines)',
630 'GPU_IMPLEMENTATION',
634 'msvs_target_platform': 'x64',
639 'target_name': 'gpu_ipc_win64',
640 'type': 'static_library',
642 'nacl_win64_target': 1,
648 '../base/base.gyp:base_win64',
649 '../ipc/ipc.gyp:ipc_win64',
650 'command_buffer_common_win64',
653 '<@(nacl_win64_defines)',
654 'GPU_IMPLEMENTATION',
658 'msvs_target_platform': 'x64',
664 ['OS == "android"', {
667 'target_name': 'gl_tests_apk',
673 'test_suite_name': 'gl_tests',
676 '../build/apk_test.gypi',
680 'target_name': 'gpu_unittests_apk',
686 'test_suite_name': 'gpu_unittests',
688 'includes': [ '../build/apk_test.gypi' ],
691 'target_name': 'gpu_perftests_apk',
697 'test_suite_name': 'gpu_perftests',
699 'includes': [ '../build/apk_test.gypi' ],
706 # TODO(kbr): port this target to the GN build.
707 'target_name': 'angle_end2end_tests',
708 'type': '<(gtest_target_type)',
710 '../base/base.gyp:base',
711 '../base/base.gyp:test_support_base',
714 '../third_party/angle/build/common_defines.gypi',
715 '../third_party/angle/src/tests/angle_end2end_tests.gypi',
718 'angle_end2end_tests_main.cc',
722 # TODO(jmadill): port this target to the GN build.
723 'target_name': 'angle_perftests',
724 'type': '<(gtest_target_type)',
726 '../base/base.gyp:base',
727 '../base/base.gyp:test_support_base',
730 '../third_party/angle/build/common_defines.gypi',
731 '../third_party/angle/src/tests/angle_perftests.gypi',
734 'angle_perftests_main.cc',
739 ['test_isolation_mode != "noop"', {
742 'target_name': 'gpu_unittests_run',
748 '../build/isolate.gypi',
751 'gpu_unittests.isolate',