Make |track_| in MediaStreamTrack const. and a couple of other cosmetic changes.
[chromium-blink-merge.git] / gpu / gpu.gyp
blob5968dab11fc6b9a0e9356ac1784553c9a5bdfd9c
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.
6   'variables': {
7     'nacl_win64_target': 0,
8   },
9   'includes': [
10     'gpu_common.gypi',
11   ],
12   'targets': [
13     {
14       # Library emulates GLES2 using command_buffers.
15       # GN version: //gpu/command_buffer/client:gles2_implementation
16       'target_name': 'gles2_implementation',
17       'type': '<(component)',
18       'dependencies': [
19         '../base/base.gyp:base',
20         '../third_party/khronos/khronos.gyp:khronos_headers',
21         '../ui/gfx/gfx.gyp:gfx_geometry',
22         '../ui/gl/gl.gyp:gl',
23         'command_buffer/command_buffer.gyp:gles2_utils',
24         'gles2_cmd_helper',
25       ],
26       'defines': [
27         'GLES2_IMPL_IMPLEMENTATION',
28       ],
29       'sources': [
30         '<@(gles2_implementation_source_files)',
31       ],
32       'includes': [
33         # Disable LTO due to ELF section name out of range
34         # crbug.com/422251
35         '../build/android/disable_lto.gypi',
36       ],
37       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
38       'msvs_disabled_warnings': [4267, ],
39     },
40     {
41       # GN version: //gpu/command_buffer/client:gl_in_process_context
42       'target_name': 'gl_in_process_context',
43       'type': '<(component)',
44       'dependencies': [
45         'command_buffer/command_buffer.gyp:gles2_utils',
46         'gles2_implementation',
47         'gpu',
48         '../base/base.gyp:base',
49         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
50         '../ui/gfx/gfx.gyp:gfx_geometry',
51         '../ui/gl/gl.gyp:gl',
52       ],
53       'defines': [
54         'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
55       ],
56       'sources': [
57         'command_buffer/client/gl_in_process_context.h',
58         'command_buffer/client/gl_in_process_context.cc',
59         'command_buffer/client/gl_in_process_context_export.h',
60       ],
61     },
62     {
63       # Library emulates GLES2 using command_buffers.
64       # GN version: //gpu/command_buffer/client:gles2_implementation_client_side_arrays
65       'target_name': 'gles2_implementation_client_side_arrays',
66       'type': '<(component)',
67       'defines': [
68         'GLES2_IMPL_IMPLEMENTATION',
69         'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
70       ],
71       'dependencies': [
72         '../base/base.gyp:base',
73         '../third_party/khronos/khronos.gyp:khronos_headers',
74         '../ui/gl/gl.gyp:gl',
75         '../ui/gfx/gfx.gyp:gfx_geometry',
76         '../ui/gfx/gfx.gyp:gfx',
77         'command_buffer/command_buffer.gyp:gles2_utils',
78         'gles2_cmd_helper',
79       ],
80       'sources': [
81         '<@(gles2_implementation_source_files)',
82       ],
83       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
84       'msvs_disabled_warnings': [ 4267, ],
85     },
86     {
87       # Library emulates GLES2 using command_buffers.
88       'target_name': 'gles2_implementation_client_side_arrays_no_check',
89       'type': '<(component)',
90       'defines': [
91         'GLES2_IMPL_IMPLEMENTATION',
92         'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
93         'GLES2_CONFORMANCE_TESTS=1',
94       ],
95       'dependencies': [
96         '../base/base.gyp:base',
97         '../third_party/khronos/khronos.gyp:khronos_headers',
98         '../ui/gfx/gfx.gyp:gfx',
99         '../ui/gfx/gfx.gyp:gfx_geometry',
100         'command_buffer/command_buffer.gyp:gles2_utils',
101         'gles2_cmd_helper',
102       ],
103       'sources': [
104         '<@(gles2_implementation_source_files)',
105       ],
106       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
107       'msvs_disabled_warnings': [ 4267, ],
108     },
109     {
110       # Stub to expose gles2_implemenation in C instead of C++.
111       # so GLES2 C programs can work with no changes.
112       # GN version: //gpu/command_buffer/client:gles2_c_lib
113       'target_name': 'gles2_c_lib',
114       'type': '<(component)',
115       'dependencies': [
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       ],
121       'defines': [
122         'GLES2_C_LIB_IMPLEMENTATION',
123       ],
124       'sources': [
125         '<@(gles2_c_lib_source_files)',
126       ],
127       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
128       'msvs_disabled_warnings': [4267, ],
129     },
130     {
131       # Same as gles2_c_lib except with no parameter checking. Required for
132       # OpenGL ES 2.0 conformance tests.
133       'target_name': 'gles2_c_lib_nocheck',
134       'type': '<(component)',
135       'defines': [
136         'GLES2_C_LIB_IMPLEMENTATION',
137         'GLES2_CONFORMANCE_TESTS=1',
138       ],
139       'dependencies': [
140         '../base/base.gyp:base',
141         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
142         'command_buffer/command_buffer.gyp:gles2_utils',
143         'command_buffer_client',
144         'gles2_implementation_client_side_arrays_no_check',
145       ],
146       'sources': [
147         '<@(gles2_c_lib_source_files)',
148       ],
149     },
150     {
151       # GN version: //gpu:angle_unittests
152       'target_name': 'angle_unittests',
153       'type': '<(gtest_target_type)',
154       'dependencies': [
155         '../base/base.gyp:base',
156         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
157         '../testing/gmock.gyp:gmock',
158         '../testing/gtest.gyp:gtest',
159         '<(angle_path)/src/angle.gyp:translator_static',
160       ],
161       'variables': {
162         'ANGLE_DIR': '<(angle_path)',
163       },
164       'includes': [
165         '../third_party/angle/tests/preprocessor_tests/preprocessor_tests.gypi',
166         '../third_party/angle/tests/compiler_tests/compiler_tests.gypi',
167       ],
168       'include_dirs': [
169         '..',
170         '<(angle_path)/include',
171         '<(angle_path)/src',
172         '<(angle_path)/src/compiler/preprocessor',
173         '<(angle_path)/tests',
174       ],
175       'sources': [
176         'angle_unittest_main.cc',
177       ],
178     },
179     {
180       # GN version: //gpu:gpu_unittests
181       'target_name': 'gpu_unittests',
182       'type': '<(gtest_target_type)',
183       'dependencies': [
184         '../base/base.gyp:base',
185         '../base/base.gyp:test_support_base',
186         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
187         '../testing/gmock.gyp:gmock',
188         '../testing/gtest.gyp:gtest',
189         '<(angle_path)/src/angle.gyp:translator',
190         '../ui/gl/gl.gyp:gl',
191         '../ui/gfx/gfx.gyp:gfx',
192         '../ui/gfx/gfx.gyp:gfx_geometry',
193         '../ui/gfx/gfx.gyp:gfx_test_support',
194         'command_buffer/command_buffer.gyp:gles2_utils',
195         'command_buffer_client',
196         'command_buffer_common',
197         'command_buffer_service',
198         'gpu',
199         'gpu_unittest_utils',
200         'gles2_implementation_client_side_arrays',
201         'gles2_cmd_helper',
202         'gles2_c_lib',
203       ],
204       'sources': [
205         # Note: sources list duplicated in GN build.
206         'command_buffer/client/buffer_tracker_unittest.cc',
207         'command_buffer/client/client_test_helper.cc',
208         'command_buffer/client/client_test_helper.h',
209         'command_buffer/client/cmd_buffer_helper_test.cc',
210         'command_buffer/client/fenced_allocator_test.cc',
211         'command_buffer/client/gles2_implementation_unittest.cc',
212         'command_buffer/client/mapped_memory_unittest.cc',
213         'command_buffer/client/query_tracker_unittest.cc',
214         'command_buffer/client/program_info_manager_unittest.cc',
215         'command_buffer/client/ring_buffer_test.cc',
216         'command_buffer/client/transfer_buffer_unittest.cc',
217         'command_buffer/client/vertex_array_object_manager_unittest.cc',
218         'command_buffer/common/bitfield_helpers_test.cc',
219         'command_buffer/common/command_buffer_mock.cc',
220         'command_buffer/common/command_buffer_mock.h',
221         'command_buffer/common/command_buffer_shared_test.cc',
222         'command_buffer/common/debug_marker_manager_unittest.cc',
223         'command_buffer/common/gles2_cmd_format_test.cc',
224         'command_buffer/common/gles2_cmd_format_test_autogen.h',
225         'command_buffer/common/gles2_cmd_utils_unittest.cc',
226         'command_buffer/common/id_allocator_test.cc',
227         'command_buffer/common/trace_event.h',
228         'command_buffer/common/unittest_main.cc',
229         'command_buffer/service/async_pixel_transfer_delegate_mock.h',
230         'command_buffer/service/async_pixel_transfer_delegate_mock.cc',
231         'command_buffer/service/async_pixel_transfer_manager_mock.h',
232         'command_buffer/service/async_pixel_transfer_manager_mock.cc',
233         'command_buffer/service/buffer_manager_unittest.cc',
234         'command_buffer/service/cmd_parser_test.cc',
235         'command_buffer/service/command_buffer_service_unittest.cc',
236         'command_buffer/service/common_decoder_unittest.cc',
237         'command_buffer/service/context_group_unittest.cc',
238         'command_buffer/service/feature_info_unittest.cc',
239         'command_buffer/service/framebuffer_manager_unittest.cc',
240         'command_buffer/service/gles2_cmd_decoder_unittest.cc',
241         'command_buffer/service/gles2_cmd_decoder_unittest.h',
242         'command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h',
243         'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
244         'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
245         'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
246         'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
247         'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
248         'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
249         'command_buffer/service/gles2_cmd_decoder_unittest_async_pixel.cc',
250         'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
251         'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
252         'command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc',
253         'command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc',
254         'command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc',
255         'command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h',
256         'command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc',
257         'command_buffer/service/gles2_cmd_decoder_unittest_programs.cc',
258         'command_buffer/service/gles2_cmd_decoder_unittest_textures.cc',
259         'command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc',
260         'command_buffer/service/gl_surface_mock.cc',
261         'command_buffer/service/gl_surface_mock.h',
262         'command_buffer/service/gpu_scheduler_unittest.cc',
263         'command_buffer/service/gpu_service_test.cc',
264         'command_buffer/service/gpu_service_test.h',
265         'command_buffer/service/id_manager_unittest.cc',
266         'command_buffer/service/mailbox_manager_unittest.cc',
267         'command_buffer/service/memory_program_cache_unittest.cc',
268         'command_buffer/service/mocks.cc',
269         'command_buffer/service/mocks.h',
270         'command_buffer/service/program_manager_unittest.cc',
271         'command_buffer/service/query_manager_unittest.cc',
272         'command_buffer/service/renderbuffer_manager_unittest.cc',
273         'command_buffer/service/program_cache_unittest.cc',
274         'command_buffer/service/shader_manager_unittest.cc',
275         'command_buffer/service/shader_translator_unittest.cc',
276         'command_buffer/service/test_helper.cc',
277         'command_buffer/service/test_helper.h',
278         'command_buffer/service/texture_manager_unittest.cc',
279         'command_buffer/service/transfer_buffer_manager_unittest.cc',
280         'command_buffer/service/vertex_attrib_manager_unittest.cc',
281         'command_buffer/service/vertex_array_manager_unittest.cc',
282         'command_buffer/service/gpu_tracer_unittest.cc',
283         'config/gpu_blacklist_unittest.cc',
284         'config/gpu_control_list_entry_unittest.cc',
285         'config/gpu_control_list_number_info_unittest.cc',
286         'config/gpu_control_list_os_info_unittest.cc',
287         'config/gpu_control_list_unittest.cc',
288         'config/gpu_control_list_version_info_unittest.cc',
289         'config/gpu_driver_bug_list_unittest.cc',
290         'config/gpu_info_collector_unittest.cc',
291         'config/gpu_info_unittest.cc',
292         'config/gpu_test_config_unittest.cc',
293         'config/gpu_test_expectations_parser_unittest.cc',
294         'config/gpu_util_unittest.cc',
295       ],
296       'conditions': [
297         ['OS == "android"', {
298           'dependencies': [
299             '../testing/android/native_test.gyp:native_test_native_code',
300           ],
301         }],
302         # See http://crbug.com/162998#c4 for why this is needed.
303         ['OS=="linux" and use_allocator!="none"', {
304           'dependencies': [
305             '../base/allocator/allocator.gyp:allocator',
306           ],
307         }],
308       ],
309       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
310       'msvs_disabled_warnings': [ 4267, ],
311     },
312     {
313       # GN version: //gpu:gl_tests
314       'target_name': 'gl_tests',
315       'type': '<(gtest_target_type)',
316       'dependencies': [
317         '../base/base.gyp:base',
318         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
319         '../testing/gmock.gyp:gmock',
320         '../testing/gtest.gyp:gtest',
321         '<(angle_path)/src/angle.gyp:translator',
322         '../ui/gfx/gfx.gyp:gfx',
323         '../ui/gfx/gfx.gyp:gfx_test_support',
324         '../ui/gfx/gfx.gyp:gfx_geometry',
325         '../ui/gl/gl.gyp:gl',
326         'command_buffer/command_buffer.gyp:gles2_utils',
327         'command_buffer_client',
328         'command_buffer_common',
329         'command_buffer_service',
330         'gpu',
331         'gpu_unittest_utils',
332         'gles2_implementation_client_side_arrays',
333         'gles2_cmd_helper',
334         'gles2_c_lib',
335         #'gl_unittests',
336       ],
337       'defines': [
338         'GL_GLEXT_PROTOTYPES',
339       ],
340       'sources': [
341         # Note: sources list duplicated in GN build.
342         'command_buffer/tests/compressed_texture_test.cc',
343         'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
344         'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
345         'command_buffer/tests/gl_chromium_path_rendering_unittest.cc',
346         'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
347         'command_buffer/tests/gl_depth_texture_unittest.cc',
348         'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
349         'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
350         'command_buffer/tests/gl_manager.cc',
351         'command_buffer/tests/gl_manager.h',
352         'command_buffer/tests/gl_pointcoord_unittest.cc',
353         'command_buffer/tests/gl_program_unittest.cc',
354         'command_buffer/tests/gl_query_unittest.cc',
355         'command_buffer/tests/gl_readback_unittest.cc',
356         'command_buffer/tests/gl_shared_resources_unittest.cc',
357         'command_buffer/tests/gl_stream_draw_unittest.cc',
358         'command_buffer/tests/gl_test_utils.cc',
359         'command_buffer/tests/gl_test_utils.h',
360         'command_buffer/tests/gl_tests_main.cc',
361         'command_buffer/tests/gl_texture_mailbox_unittest.cc',
362         'command_buffer/tests/gl_texture_storage_unittest.cc',
363         'command_buffer/tests/gl_unittest.cc',
364         'command_buffer/tests/gl_unittests_android.cc',
365         'command_buffer/tests/gl_virtual_contexts_unittest.cc',
366         'command_buffer/tests/occlusion_query_unittest.cc',
367       ],
368       'conditions': [
369         ['OS == "android"', {
370           'dependencies': [
371             '../testing/android/native_test.gyp:native_test_native_code',
372           ],
373         }],
374         ['OS == "win"', {
375           'dependencies': [
376             '../third_party/angle/src/angle.gyp:libEGL',
377             '../third_party/angle/src/angle.gyp:libGLESv2',
378           ],
379         }],
380       ],
381       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
382       'msvs_disabled_warnings': [ 4267, ],
383     },
384     {
385       # GN version: //gpu:test_support
386       'target_name': 'gpu_unittest_utils',
387       'type': 'static_library',
388       'dependencies': [
389         '../testing/gmock.gyp:gmock',
390         '../testing/gtest.gyp:gtest',
391         '../third_party/khronos/khronos.gyp:khronos_headers',
392         '../ui/gl/gl.gyp:gl_unittest_utils',
393         'gpu',
394       ],
395       'include_dirs': [
396         '..',
397       ],
398       'sources': [
399         'command_buffer/service/gles2_cmd_decoder_mock.cc',
400         'command_buffer/service/error_state_mock.cc',
401         'command_buffer/client/gles2_interface_stub.cc',
402         'command_buffer/client/gles2_interface_stub.h',
403       ],
404     },
405   ],
406   'conditions': [
407     ['component=="static_library"', {
408       'targets': [
409          {
410           # GN version: //gpu/command_buffer/service:disk_cache_proto
411           'target_name': 'disk_cache_proto',
412           'type': 'static_library',
413           'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
414           'variables': {
415             'proto_in_dir': 'command_buffer/service',
416             'proto_out_dir': 'gpu/command_buffer/service',
417           },
418           'includes': [ '../build/protoc.gypi' ],
419         },
420         {
421           # GN version: //gpu
422           'target_name': 'gpu',
423           'type': 'none',
424           'dependencies': [
425             'command_buffer_client',
426             'command_buffer_common',
427             'command_buffer_service',
428             'gles2_cmd_helper',
429             'gpu_config',
430             'gpu_ipc',
431           ],
432           'sources': [
433             'gpu_export.h',
434           ],
435           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
436           'msvs_disabled_warnings': [4267, ],
437         },
438         {
439           # GN version: //gpu/command_buffer/common
440           'target_name': 'command_buffer_common',
441           'type': 'static_library',
442           'includes': [
443             'command_buffer_common.gypi',
444           ],
445           'dependencies': [
446             '../base/base.gyp:base',
447             'command_buffer/command_buffer.gyp:gles2_utils',
448           ],
449           'export_dependent_settings': [
450             '../base/base.gyp:base',
451           ],
452         },
453         {
454           # Library helps make GLES2 command buffers.
455           # GN version: //gpu/command_buffer/client:gles2_cmd_helper
456           'target_name': 'gles2_cmd_helper',
457           'type': 'static_library',
458           'includes': [
459             'gles2_cmd_helper.gypi',
460           ],
461           'dependencies': [
462             'command_buffer_client',
463           ],
464           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
465           'msvs_disabled_warnings': [4267, ],
466         },
467         {
468           # GN version: //gpu/command_buffer/client
469           'target_name': 'command_buffer_client',
470           'type': 'static_library',
471           'includes': [
472             'command_buffer_client.gypi',
473           ],
474           'dependencies': [
475             'command_buffer_common',
476           ],
477           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
478           'msvs_disabled_warnings': [4267, ],
479         },
480         {
481           # GN version: //gpu/command_buffer/service
482           'target_name': 'command_buffer_service',
483           'type': 'static_library',
484           'includes': [
485             'command_buffer_service.gypi',
486             '../build/android/increase_size_for_speed.gypi',
487             # Disable LTO due to ELF section name out of range
488             # crbug.com/422251
489             '../build/android/disable_lto.gypi',
490           ],
491           'dependencies': [
492             'command_buffer_common',
493             'disk_cache_proto',
494           ],
495           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
496           'msvs_disabled_warnings': [4267, ],
497         },
498         {
499           # GN version: //gpu/ipc
500           'target_name': 'gpu_ipc',
501           'type': 'static_library',
502           'includes': [
503             'gpu_ipc.gypi',
504           ],
505           'dependencies': [
506             'command_buffer_common',
507           ],
508         },
509         {
510           'target_name': 'gpu_config',
511           'type': 'static_library',
512           'includes': [
513             'gpu_config.gypi',
514           ],
515         },
516       ],
517     },
518     { # component != static_library
519       'targets': [
520          {
521           # GN version: //gpu/command_buffer/service:disk_cache_proto
522           'target_name': 'disk_cache_proto',
523           'type': 'static_library',
524           'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
525           'variables': {
526             'proto_in_dir': 'command_buffer/service',
527             'proto_out_dir': 'gpu/command_buffer/service',
528           },
529           'includes': [ '../build/protoc.gypi' ],
530         },
531         {
532           # GN version: //gpu
533           'target_name': 'gpu',
534           'type': 'shared_library',
535           'includes': [
536             'command_buffer_client.gypi',
537             'command_buffer_common.gypi',
538             'command_buffer_service.gypi',
539             'gles2_cmd_helper.gypi',
540             'gpu_config.gypi',
541             'gpu_ipc.gypi',
542             '../build/android/increase_size_for_speed.gypi',
543           ],
544           'defines': [
545             'GPU_IMPLEMENTATION',
546           ],
547           'sources': [
548             'gpu_export.h',
549           ],
550           'dependencies': [
551             '../base/base.gyp:base',
552             'command_buffer/command_buffer.gyp:gles2_utils',
553             'disk_cache_proto',
554           ],
555           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
556           'msvs_disabled_warnings': [4267, ],
557         },
558         {
559           # GN version: //gpu/command_buffer/common
560           'target_name': 'command_buffer_common',
561           'type': 'none',
562           'dependencies': [
563             'gpu',
564           ],
565         },
566         {
567           # Library helps make GLES2 command buffers.
568           # GN version: //gpu/command_buffer/client:gles2_cmd_helper
569           'target_name': 'gles2_cmd_helper',
570           'type': 'none',
571           'dependencies': [
572             'gpu',
573           ],
574           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
575           'msvs_disabled_warnings': [4267, ],
576         },
577         {
578           # GN version: //gpu/command_buffer/client
579           'target_name': 'command_buffer_client',
580           'type': 'none',
581           'dependencies': [
582             'gpu',
583           ],
584         },
585         {
586           # GN version: //gpu/command_buffer/service
587           'target_name': 'command_buffer_service',
588           'type': 'none',
589           'dependencies': [
590             'gpu',
591           ],
592         },
593         {
594           # GN version: //gpu/ipc
595           'target_name': 'gpu_ipc',
596           'type': 'none',
597           'dependencies': [
598             'gpu',
599           ],
600         },
601       ],
602     }],
603     ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
604       'targets': [
605         {
606           'target_name': 'command_buffer_common_win64',
607           'type': 'static_library',
608           'variables': {
609             'nacl_win64_target': 1,
610           },
611           'includes': [
612             'command_buffer_common.gypi',
613           ],
614           'dependencies': [
615             '../base/base.gyp:base_win64',
616           ],
617           'defines': [
618             '<@(nacl_win64_defines)',
619             'GPU_IMPLEMENTATION',
620           ],
621           'configurations': {
622             'Common_Base': {
623               'msvs_target_platform': 'x64',
624             },
625           },
626         },
627         {
628           'target_name': 'gpu_ipc_win64',
629           'type': 'static_library',
630           'variables': {
631             'nacl_win64_target': 1,
632           },
633           'includes': [
634             'gpu_ipc.gypi',
635           ],
636           'dependencies': [
637             '../base/base.gyp:base_win64',
638             '../ipc/ipc.gyp:ipc_win64',
639             'command_buffer_common_win64',
640           ],
641           'defines': [
642             '<@(nacl_win64_defines)',
643             'GPU_IMPLEMENTATION',
644           ],
645           'configurations': {
646             'Common_Base': {
647               'msvs_target_platform': 'x64',
648             },
649           },
650         },
651       ],
652     }],
653     ['OS == "android"', {
654       'targets': [
655         {
656           'target_name': 'gl_tests_apk',
657           'type': 'none',
658           'dependencies': [
659             'gl_tests',
660           ],
661           'variables': {
662             'test_suite_name': 'gl_tests',
663           },
664           'includes': [
665             '../build/apk_test.gypi',
666           ],
667         },
668         {
669           'target_name': 'gpu_unittests_apk',
670           'type': 'none',
671           'dependencies': [
672             'gpu_unittests',
673           ],
674           'variables': {
675             'test_suite_name': 'gpu_unittests',
676           },
677           'includes': [ '../build/apk_test.gypi' ],
678         },
679       ],
680     }],
681   ],