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)',
32 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
33 'msvs_disabled_warnings': [4267, ],
36 # GN version: //gpu/command_buffer/client:gl_in_process_context
37 'target_name': 'gl_in_process_context',
38 'type': '<(component)',
40 'command_buffer/command_buffer.gyp:gles2_utils',
41 'gles2_implementation',
43 '../base/base.gyp:base',
44 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
45 '../ui/gfx/gfx.gyp:gfx_geometry',
49 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
52 'command_buffer/client/gl_in_process_context.h',
53 'command_buffer/client/gl_in_process_context.cc',
54 'command_buffer/client/gl_in_process_context_export.h',
58 # Library emulates GLES2 using command_buffers.
59 # GN version: //gpu/command_buffer/client:gles2_implementation_client_side_arrays
60 'target_name': 'gles2_implementation_client_side_arrays',
61 'type': '<(component)',
63 'GLES2_IMPL_IMPLEMENTATION',
64 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
67 '../base/base.gyp:base',
68 '../third_party/khronos/khronos.gyp:khronos_headers',
70 '../ui/gfx/gfx.gyp:gfx_geometry',
71 '../ui/gfx/gfx.gyp:gfx',
72 'command_buffer/command_buffer.gyp:gles2_utils',
76 '<@(gles2_implementation_source_files)',
78 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
79 'msvs_disabled_warnings': [ 4267, ],
82 # Library emulates GLES2 using command_buffers.
83 'target_name': 'gles2_implementation_client_side_arrays_no_check',
84 'type': '<(component)',
86 'GLES2_IMPL_IMPLEMENTATION',
87 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
88 'GLES2_CONFORMANCE_TESTS=1',
91 '../base/base.gyp:base',
92 '../third_party/khronos/khronos.gyp:khronos_headers',
93 '../ui/gfx/gfx.gyp:gfx',
94 '../ui/gfx/gfx.gyp:gfx_geometry',
95 'command_buffer/command_buffer.gyp:gles2_utils',
99 '<@(gles2_implementation_source_files)',
101 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
102 'msvs_disabled_warnings': [ 4267, ],
105 # Stub to expose gles2_implemenation in C instead of C++.
106 # so GLES2 C programs can work with no changes.
107 # GN version: //gpu/command_buffer/client:gles2_c_lib
108 'target_name': 'gles2_c_lib',
109 'type': '<(component)',
111 '../base/base.gyp:base',
112 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
113 'command_buffer/command_buffer.gyp:gles2_utils',
114 'command_buffer_client',
117 'GLES2_C_LIB_IMPLEMENTATION',
120 '<@(gles2_c_lib_source_files)',
122 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
123 'msvs_disabled_warnings': [4267, ],
126 # Same as gles2_c_lib except with no parameter checking. Required for
127 # OpenGL ES 2.0 conformance tests.
128 'target_name': 'gles2_c_lib_nocheck',
129 'type': '<(component)',
131 'GLES2_C_LIB_IMPLEMENTATION',
132 'GLES2_CONFORMANCE_TESTS=1',
135 '../base/base.gyp:base',
136 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
137 'command_buffer/command_buffer.gyp:gles2_utils',
138 'command_buffer_client',
139 'gles2_implementation_client_side_arrays_no_check',
142 '<@(gles2_c_lib_source_files)',
146 # GN version: //gpu:angle_unittests
147 'target_name': 'angle_unittests',
148 'type': '<(gtest_target_type)',
150 '../base/base.gyp:base',
151 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
152 '../testing/gmock.gyp:gmock',
153 '../testing/gtest.gyp:gtest',
154 '<(angle_path)/src/build_angle.gyp:translator_static',
157 'ANGLE_DIR': '<(angle_path)',
160 '../third_party/angle/tests/preprocessor_tests/preprocessor_tests.gypi',
161 '../third_party/angle/tests/compiler_tests/compiler_tests.gypi',
165 '<(angle_path)/include',
167 '<(angle_path)/src/compiler/preprocessor',
168 '<(angle_path)/tests',
171 'angle_unittest_main.cc',
175 # GN version: //gpu:gpu_unittests
176 'target_name': 'gpu_unittests',
177 'type': '<(gtest_target_type)',
179 '../base/base.gyp:base',
180 '../base/base.gyp:test_support_base',
181 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
182 '../testing/gmock.gyp:gmock',
183 '../testing/gtest.gyp:gtest',
184 '<(angle_path)/src/build_angle.gyp:translator',
185 '../ui/gl/gl.gyp:gl',
186 '../ui/gfx/gfx.gyp:gfx',
187 '../ui/gfx/gfx.gyp:gfx_geometry',
188 '../ui/gfx/gfx.gyp:gfx_test_support',
189 'command_buffer/command_buffer.gyp:gles2_utils',
190 'command_buffer_client',
191 'command_buffer_common',
192 'command_buffer_service',
194 'gpu_unittest_utils',
195 'gles2_implementation_client_side_arrays',
200 # Note: sources list duplicated in GN build.
201 'command_buffer/client/buffer_tracker_unittest.cc',
202 'command_buffer/client/client_test_helper.cc',
203 'command_buffer/client/client_test_helper.h',
204 'command_buffer/client/cmd_buffer_helper_test.cc',
205 'command_buffer/client/fenced_allocator_test.cc',
206 'command_buffer/client/gles2_implementation_unittest.cc',
207 'command_buffer/client/mapped_memory_unittest.cc',
208 'command_buffer/client/query_tracker_unittest.cc',
209 'command_buffer/client/program_info_manager_unittest.cc',
210 'command_buffer/client/ring_buffer_test.cc',
211 'command_buffer/client/transfer_buffer_unittest.cc',
212 'command_buffer/client/vertex_array_object_manager_unittest.cc',
213 'command_buffer/common/bitfield_helpers_test.cc',
214 'command_buffer/common/command_buffer_mock.cc',
215 'command_buffer/common/command_buffer_mock.h',
216 'command_buffer/common/command_buffer_shared_test.cc',
217 'command_buffer/common/debug_marker_manager_unittest.cc',
218 'command_buffer/common/gles2_cmd_format_test.cc',
219 'command_buffer/common/gles2_cmd_format_test_autogen.h',
220 'command_buffer/common/gles2_cmd_utils_unittest.cc',
221 'command_buffer/common/id_allocator_test.cc',
222 'command_buffer/common/trace_event.h',
223 'command_buffer/common/unittest_main.cc',
224 'command_buffer/service/async_pixel_transfer_delegate_mock.h',
225 'command_buffer/service/async_pixel_transfer_delegate_mock.cc',
226 'command_buffer/service/async_pixel_transfer_manager_mock.h',
227 'command_buffer/service/async_pixel_transfer_manager_mock.cc',
228 'command_buffer/service/buffer_manager_unittest.cc',
229 'command_buffer/service/cmd_parser_test.cc',
230 'command_buffer/service/command_buffer_service_unittest.cc',
231 'command_buffer/service/common_decoder_unittest.cc',
232 'command_buffer/service/context_group_unittest.cc',
233 'command_buffer/service/feature_info_unittest.cc',
234 'command_buffer/service/framebuffer_manager_unittest.cc',
235 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
236 'command_buffer/service/gles2_cmd_decoder_unittest.h',
237 'command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h',
238 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
239 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
240 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
241 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
242 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
243 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
244 'command_buffer/service/gles2_cmd_decoder_unittest_async_pixel.cc',
245 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
246 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
247 'command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc',
248 'command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc',
249 'command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc',
250 'command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h',
251 'command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc',
252 'command_buffer/service/gles2_cmd_decoder_unittest_programs.cc',
253 'command_buffer/service/gles2_cmd_decoder_unittest_textures.cc',
254 'command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc',
255 'command_buffer/service/gl_surface_mock.cc',
256 'command_buffer/service/gl_surface_mock.h',
257 'command_buffer/service/gpu_scheduler_unittest.cc',
258 'command_buffer/service/gpu_service_test.cc',
259 'command_buffer/service/gpu_service_test.h',
260 'command_buffer/service/id_manager_unittest.cc',
261 'command_buffer/service/mailbox_manager_unittest.cc',
262 'command_buffer/service/memory_program_cache_unittest.cc',
263 'command_buffer/service/mocks.cc',
264 'command_buffer/service/mocks.h',
265 'command_buffer/service/program_manager_unittest.cc',
266 'command_buffer/service/query_manager_unittest.cc',
267 'command_buffer/service/renderbuffer_manager_unittest.cc',
268 'command_buffer/service/program_cache_unittest.cc',
269 'command_buffer/service/shader_manager_unittest.cc',
270 'command_buffer/service/shader_translator_unittest.cc',
271 'command_buffer/service/test_helper.cc',
272 'command_buffer/service/test_helper.h',
273 'command_buffer/service/texture_manager_unittest.cc',
274 'command_buffer/service/transfer_buffer_manager_unittest.cc',
275 'command_buffer/service/vertex_attrib_manager_unittest.cc',
276 'command_buffer/service/vertex_array_manager_unittest.cc',
277 'command_buffer/service/gpu_tracer_unittest.cc',
278 'config/gpu_blacklist_unittest.cc',
279 'config/gpu_control_list_entry_unittest.cc',
280 'config/gpu_control_list_number_info_unittest.cc',
281 'config/gpu_control_list_os_info_unittest.cc',
282 'config/gpu_control_list_unittest.cc',
283 'config/gpu_control_list_version_info_unittest.cc',
284 'config/gpu_driver_bug_list_unittest.cc',
285 'config/gpu_info_collector_unittest.cc',
286 'config/gpu_info_unittest.cc',
287 'config/gpu_test_config_unittest.cc',
288 'config/gpu_test_expectations_parser_unittest.cc',
289 'config/gpu_util_unittest.cc',
292 ['OS == "android"', {
294 '../testing/android/native_test.gyp:native_test_native_code',
297 # See http://crbug.com/162998#c4 for why this is needed.
298 ['OS=="linux" and use_allocator!="none"', {
300 '../base/allocator/allocator.gyp:allocator',
304 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
305 'msvs_disabled_warnings': [ 4267, ],
308 # GN version: //gpu:gl_tests
309 'target_name': 'gl_tests',
310 'type': '<(gtest_target_type)',
312 '../base/base.gyp:base',
313 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
314 '../testing/gmock.gyp:gmock',
315 '../testing/gtest.gyp:gtest',
316 '<(angle_path)/src/build_angle.gyp:translator',
317 '../ui/gfx/gfx.gyp:gfx',
318 '../ui/gfx/gfx.gyp:gfx_test_support',
319 '../ui/gfx/gfx.gyp:gfx_geometry',
320 '../ui/gl/gl.gyp:gl',
321 'command_buffer/command_buffer.gyp:gles2_utils',
322 'command_buffer_client',
323 'command_buffer_common',
324 'command_buffer_service',
326 'gpu_unittest_utils',
327 'gles2_implementation_client_side_arrays',
333 'GL_GLEXT_PROTOTYPES',
336 # Note: sources list duplicated in GN build.
337 'command_buffer/tests/compressed_texture_test.cc',
338 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
339 'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
340 'command_buffer/tests/gl_chromium_path_rendering_unittest.cc',
341 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
342 'command_buffer/tests/gl_depth_texture_unittest.cc',
343 'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
344 'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
345 'command_buffer/tests/gl_manager.cc',
346 'command_buffer/tests/gl_manager.h',
347 'command_buffer/tests/gl_pointcoord_unittest.cc',
348 'command_buffer/tests/gl_program_unittest.cc',
349 'command_buffer/tests/gl_query_unittest.cc',
350 'command_buffer/tests/gl_readback_unittest.cc',
351 'command_buffer/tests/gl_shared_resources_unittest.cc',
352 'command_buffer/tests/gl_stream_draw_unittest.cc',
353 'command_buffer/tests/gl_test_utils.cc',
354 'command_buffer/tests/gl_test_utils.h',
355 'command_buffer/tests/gl_tests_main.cc',
356 'command_buffer/tests/gl_texture_mailbox_unittest.cc',
357 'command_buffer/tests/gl_texture_storage_unittest.cc',
358 'command_buffer/tests/gl_unittest.cc',
359 'command_buffer/tests/gl_unittests_android.cc',
360 'command_buffer/tests/gl_virtual_contexts_unittest.cc',
361 'command_buffer/tests/occlusion_query_unittest.cc',
364 ['OS == "android"', {
366 '../testing/android/native_test.gyp:native_test_native_code',
371 '../third_party/angle/src/build_angle.gyp:libEGL',
372 '../third_party/angle/src/build_angle.gyp:libGLESv2',
376 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
377 'msvs_disabled_warnings': [ 4267, ],
380 # GN version: //gpu:test_support
381 'target_name': 'gpu_unittest_utils',
382 'type': 'static_library',
384 '../testing/gmock.gyp:gmock',
385 '../testing/gtest.gyp:gtest',
386 '../third_party/khronos/khronos.gyp:khronos_headers',
387 '../ui/gl/gl.gyp:gl_unittest_utils',
394 'command_buffer/service/gles2_cmd_decoder_mock.cc',
395 'command_buffer/service/error_state_mock.cc',
396 'command_buffer/client/gles2_interface_stub.cc',
397 'command_buffer/client/gles2_interface_stub.h',
402 ['component=="static_library"', {
405 # GN version: //gpu/command_buffer/service:disk_cache_proto
406 'target_name': 'disk_cache_proto',
407 'type': 'static_library',
408 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
410 'proto_in_dir': 'command_buffer/service',
411 'proto_out_dir': 'gpu/command_buffer/service',
413 'includes': [ '../build/protoc.gypi' ],
417 'target_name': 'gpu',
420 'command_buffer_client',
421 'command_buffer_common',
422 'command_buffer_service',
430 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
431 'msvs_disabled_warnings': [4267, ],
434 # GN version: //gpu/command_buffer/common
435 'target_name': 'command_buffer_common',
436 'type': 'static_library',
438 'command_buffer_common.gypi',
441 '../base/base.gyp:base',
442 'command_buffer/command_buffer.gyp:gles2_utils',
444 'export_dependent_settings': [
445 '../base/base.gyp:base',
449 # Library helps make GLES2 command buffers.
450 # GN version: //gpu/command_buffer/client:gles2_cmd_helper
451 'target_name': 'gles2_cmd_helper',
452 'type': 'static_library',
454 'gles2_cmd_helper.gypi',
457 'command_buffer_client',
459 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
460 'msvs_disabled_warnings': [4267, ],
463 # GN version: //gpu/command_buffer/client
464 'target_name': 'command_buffer_client',
465 'type': 'static_library',
467 'command_buffer_client.gypi',
470 'command_buffer_common',
472 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
473 'msvs_disabled_warnings': [4267, ],
476 # GN version: //gpu/command_buffer/service
477 'target_name': 'command_buffer_service',
478 'type': 'static_library',
480 'command_buffer_service.gypi',
481 '../build/android/increase_size_for_speed.gypi',
484 'command_buffer_common',
487 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
488 'msvs_disabled_warnings': [4267, ],
491 # GN version: //gpu/ipc
492 'target_name': 'gpu_ipc',
493 'type': 'static_library',
498 'command_buffer_common',
502 'target_name': 'gpu_config',
503 'type': 'static_library',
510 { # component != static_library
513 # GN version: //gpu/command_buffer/service:disk_cache_proto
514 'target_name': 'disk_cache_proto',
515 'type': 'static_library',
516 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
518 'proto_in_dir': 'command_buffer/service',
519 'proto_out_dir': 'gpu/command_buffer/service',
521 'includes': [ '../build/protoc.gypi' ],
525 'target_name': 'gpu',
526 'type': 'shared_library',
528 'command_buffer_client.gypi',
529 'command_buffer_common.gypi',
530 'command_buffer_service.gypi',
531 'gles2_cmd_helper.gypi',
534 '../build/android/increase_size_for_speed.gypi',
537 'GPU_IMPLEMENTATION',
543 '../base/base.gyp:base',
544 'command_buffer/command_buffer.gyp:gles2_utils',
547 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
548 'msvs_disabled_warnings': [4267, ],
551 # GN version: //gpu/command_buffer/common
552 'target_name': 'command_buffer_common',
559 # Library helps make GLES2 command buffers.
560 # GN version: //gpu/command_buffer/client:gles2_cmd_helper
561 'target_name': 'gles2_cmd_helper',
566 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
567 'msvs_disabled_warnings': [4267, ],
570 # GN version: //gpu/command_buffer/client
571 'target_name': 'command_buffer_client',
578 # GN version: //gpu/command_buffer/service
579 'target_name': 'command_buffer_service',
586 # GN version: //gpu/ipc
587 'target_name': 'gpu_ipc',
595 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
598 'target_name': 'command_buffer_common_win64',
599 'type': 'static_library',
601 'nacl_win64_target': 1,
604 'command_buffer_common.gypi',
607 '../base/base.gyp:base_win64',
610 '<@(nacl_win64_defines)',
611 'GPU_IMPLEMENTATION',
615 'msvs_target_platform': 'x64',
620 'target_name': 'gpu_ipc_win64',
621 'type': 'static_library',
623 'nacl_win64_target': 1,
629 '../base/base.gyp:base_win64',
630 '../ipc/ipc.gyp:ipc_win64',
631 'command_buffer_common_win64',
634 '<@(nacl_win64_defines)',
635 'GPU_IMPLEMENTATION',
639 'msvs_target_platform': 'x64',
645 ['OS == "android"', {
648 'target_name': 'gl_tests_apk',
654 'test_suite_name': 'gl_tests',
657 '../build/apk_test.gypi',
661 'target_name': 'gpu_unittests_apk',
667 'test_suite_name': 'gpu_unittests',
669 'includes': [ '../build/apk_test.gypi' ],