Fix sort order of unlaunched apps on app list start page.
[chromium-blink-merge.git] / gpu / gpu.gyp
blob2bb746554b2100c304b497500260230e26117f9d
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.cc',
58         'command_buffer/client/gl_in_process_context.h',
59         'command_buffer/client/gl_in_process_context_export.h',
60       ],
61     },
62     {
63       # Library emulates GLES2 using command_buffers.
64       'target_name': 'gles2_implementation_no_check',
65       'type': '<(component)',
66       'defines': [
67         'GLES2_IMPL_IMPLEMENTATION',
68         'GLES2_CONFORMANCE_TESTS=1',
69       ],
70       'dependencies': [
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',
76         'gles2_cmd_helper',
77       ],
78       'sources': [
79         '<@(gles2_implementation_source_files)',
80       ],
81       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
82       'msvs_disabled_warnings': [ 4267, ],
83     },
84     {
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)',
90       'dependencies': [
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',
95       ],
96       'defines': [
97         'GLES2_C_LIB_IMPLEMENTATION',
98       ],
99       'sources': [
100         '<@(gles2_c_lib_source_files)',
101       ],
102       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
103       'msvs_disabled_warnings': [4267, ],
104     },
105     {
106       # Same as gles2_c_lib except with no parameter checking. Required for
107       # OpenGL ES 2.0 conformance tests.
108       'target_name': 'gles2_c_lib_nocheck',
109       'type': '<(component)',
110       'defines': [
111         'GLES2_C_LIB_IMPLEMENTATION',
112         'GLES2_CONFORMANCE_TESTS=1',
113       ],
114       'dependencies': [
115         '../base/base.gyp:base',
116         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
117         'command_buffer/command_buffer.gyp:gles2_utils',
118         'command_buffer_client',
119         'gles2_implementation_no_check',
120       ],
121       'sources': [
122         '<@(gles2_c_lib_source_files)',
123       ],
124     },
125     {
126       # GN version: //gpu:angle_unittests
127       # TODO(kbr): port this refactoring to the GN build.
128       'target_name': 'angle_unittests',
129       'type': '<(gtest_target_type)',
130       'includes': [
131         '../third_party/angle/build/common_defines.gypi',
132         '../third_party/angle/tests/angle_unittests.gypi',
133       ],
134       'dependencies': [
135         '../base/base.gyp:base',
136         '../base/base.gyp:test_support_base',
137       ],
138       'include_dirs': [
139         '..',
140         '../third_party/angle/include',
141       ],
142       'sources':
143       [
144         'angle_unittest_main.cc',
145       ],
146     },
147     {
148       # GN version: //gpu:gpu_unittests
149       'target_name': 'gpu_unittests',
150       'type': '<(gtest_target_type)',
151       'dependencies': [
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',
166         'gpu',
167         'gpu_unittest_utils',
168         'gles2_implementation',
169         'gles2_cmd_helper',
170         'gles2_c_lib',
171       ],
172       'sources': [
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_context_state.cc',
224         'command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc',
225         'command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc',
226         'command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h',
227         'command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc',
228         'command_buffer/service/gles2_cmd_decoder_unittest_programs.cc',
229         'command_buffer/service/gles2_cmd_decoder_unittest_textures.cc',
230         'command_buffer/service/gles2_cmd_decoder_unittest_valuebuffer.cc',
231         'command_buffer/service/gpu_scheduler_unittest.cc',
232         'command_buffer/service/gpu_service_test.cc',
233         'command_buffer/service/gpu_service_test.h',
234         'command_buffer/service/gpu_tracer_unittest.cc',
235         'command_buffer/service/id_manager_unittest.cc',
236         'command_buffer/service/mailbox_manager_unittest.cc',
237         'command_buffer/service/memory_program_cache_unittest.cc',
238         'command_buffer/service/mocks.cc',
239         'command_buffer/service/mocks.h',
240         'command_buffer/service/program_cache_unittest.cc',
241         'command_buffer/service/program_manager_unittest.cc',
242         'command_buffer/service/query_manager_unittest.cc',
243         'command_buffer/service/renderbuffer_manager_unittest.cc',
244         'command_buffer/service/shader_manager_unittest.cc',
245         'command_buffer/service/shader_translator_cache_unittest.cc',
246         'command_buffer/service/shader_translator_unittest.cc',
247         'command_buffer/service/test_helper.cc',
248         'command_buffer/service/test_helper.h',
249         'command_buffer/service/texture_manager_unittest.cc',
250         'command_buffer/service/transfer_buffer_manager_unittest.cc',
251         'command_buffer/service/valuebuffer_manager_unittest.cc',
252         'command_buffer/service/vertex_array_manager_unittest.cc',
253         'command_buffer/service/vertex_attrib_manager_unittest.cc',
254         'config/gpu_blacklist_unittest.cc',
255         'config/gpu_control_list_entry_unittest.cc',
256         'config/gpu_control_list_number_info_unittest.cc',
257         'config/gpu_control_list_os_info_unittest.cc',
258         'config/gpu_control_list_unittest.cc',
259         'config/gpu_control_list_version_info_unittest.cc',
260         'config/gpu_driver_bug_list_unittest.cc',
261         'config/gpu_info_collector_unittest.cc',
262         'config/gpu_info_unittest.cc',
263         'config/gpu_test_config_unittest.cc',
264         'config/gpu_test_expectations_parser_unittest.cc',
265         'config/gpu_util_unittest.cc',
266       ],
267       'conditions': [
268         ['OS == "android"', {
269           'dependencies': [
270             '../testing/android/native_test.gyp:native_test_native_code',
271           ],
272         }],
273         # See http://crbug.com/162998#c4 for why this is needed.
274         ['OS=="linux" and use_allocator!="none"', {
275           'dependencies': [
276             '../base/allocator/allocator.gyp:allocator',
277           ],
278         }],
279       ],
280       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
281       'msvs_disabled_warnings': [ 4267, ],
282     },
283     {
284       # GN version: //gpu/gpu_perftests
285       'target_name': 'gpu_perftests',
286       'type': '<(gtest_target_type)',
287       'dependencies': [
288         '../base/base.gyp:base',
289         '../base/base.gyp:test_support_base',
290         '../testing/gtest.gyp:gtest',
291         '../testing/perf/perf_test.gyp:perf_test',
292         '../ui/gfx/gfx.gyp:gfx_geometry',
293         '../ui/gl/gl.gyp:gl',
294         'command_buffer_service',
295       ],
296       'sources': [
297         'perftests/measurements.cc',
298         'perftests/run_all_tests.cc',
299         'perftests/texture_upload_perftest.cc',
300       ],
301       'conditions': [
302         ['OS == "android"',
303           {
304             'dependencies': [
305               '../testing/android/native_test.gyp:native_test_native_code',
306             ],
307           }
308         ],
309         # See http://crbug.com/162998#c4 for why this is needed.
310         ['OS=="linux" and use_allocator!="none"',
311           {
312             'dependencies': [
313               '../base/allocator/allocator.gyp:allocator',
314             ],
315           }
316         ],
317       ],
318     },
319     {
320       # GN version: //gpu:gl_tests
321       'target_name': 'gl_tests',
322       'type': '<(gtest_target_type)',
323       'dependencies': [
324         '../base/base.gyp:base',
325         '../base/base.gyp:test_support_base',
326         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
327         '../testing/gmock.gyp:gmock',
328         '../testing/gtest.gyp:gtest',
329         '<(angle_path)/src/angle.gyp:translator',
330         '../ui/gfx/gfx.gyp:gfx',
331         '../ui/gfx/gfx.gyp:gfx_test_support',
332         '../ui/gfx/gfx.gyp:gfx_geometry',
333         '../ui/gl/gl.gyp:gl',
334         'command_buffer/command_buffer.gyp:gles2_utils',
335         'command_buffer_client',
336         'command_buffer_common',
337         'command_buffer_service',
338         'gpu',
339         'gpu_unittest_utils',
340         'gles2_implementation',
341         'gles2_cmd_helper',
342         'gles2_c_lib',
343         #'gl_unittests',
344       ],
345       'defines': [
346         'GL_GLEXT_PROTOTYPES',
347       ],
348       'sources': [
349         # Note: sources list duplicated in GN build.
350         'command_buffer/tests/compressed_texture_test.cc',
351         'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
352         'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
353         'command_buffer/tests/gl_chromium_path_rendering_unittest.cc',
354         'command_buffer/tests/gl_clear_framebuffer_unittest.cc',
355         'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
356         'command_buffer/tests/gl_depth_texture_unittest.cc',
357         'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
358         'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
359         'command_buffer/tests/gl_manager.cc',
360         'command_buffer/tests/gl_manager.h',
361         'command_buffer/tests/gl_pointcoord_unittest.cc',
362         'command_buffer/tests/gl_program_unittest.cc',
363         'command_buffer/tests/gl_query_unittest.cc',
364         'command_buffer/tests/gl_readback_unittest.cc',
365         'command_buffer/tests/gl_shared_resources_unittest.cc',
366         'command_buffer/tests/gl_stream_draw_unittest.cc',
367         'command_buffer/tests/gl_test_utils.cc',
368         'command_buffer/tests/gl_test_utils.h',
369         'command_buffer/tests/gl_tests_main.cc',
370         'command_buffer/tests/gl_texture_mailbox_unittest.cc',
371         'command_buffer/tests/gl_texture_storage_unittest.cc',
372         'command_buffer/tests/gl_unittest.cc',
373         'command_buffer/tests/gl_unittests_android.cc',
374         'command_buffer/tests/gl_virtual_contexts_unittest.cc',
375         'command_buffer/tests/occlusion_query_unittest.cc',
376       ],
377       'conditions': [
378         ['OS == "android"', {
379           'dependencies': [
380             '../testing/android/native_test.gyp:native_test_native_code',
381           ],
382         }],
383         ['OS == "win"', {
384           'dependencies': [
385             '../third_party/angle/src/angle.gyp:libEGL',
386             '../third_party/angle/src/angle.gyp:libGLESv2',
387           ],
388         }],
389       ],
390       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
391       'msvs_disabled_warnings': [ 4267, ],
392     },
393     {
394       # GN version: //gpu:test_support
395       'target_name': 'gpu_unittest_utils',
396       'type': 'static_library',
397       'dependencies': [
398         '../testing/gmock.gyp:gmock',
399         '../testing/gtest.gyp:gtest',
400         '../third_party/khronos/khronos.gyp:khronos_headers',
401         '../ui/gl/gl.gyp:gl_unittest_utils',
402         'gpu',
403       ],
404       'include_dirs': [
405         '..',
406       ],
407       'sources': [
408         'command_buffer/client/gles2_interface_stub.cc',
409         'command_buffer/client/gles2_interface_stub.h',
410         'command_buffer/service/error_state_mock.cc',
411         'command_buffer/service/gles2_cmd_decoder_mock.cc',
412       ],
413     },
414   ],
415   'conditions': [
416     ['component=="static_library"', {
417       'targets': [
418          {
419           # GN version: //gpu/command_buffer/service:disk_cache_proto
420           'target_name': 'disk_cache_proto',
421           'type': 'static_library',
422           'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
423           'variables': {
424             'proto_in_dir': 'command_buffer/service',
425             'proto_out_dir': 'gpu/command_buffer/service',
426           },
427           'includes': [ '../build/protoc.gypi' ],
428         },
429         {
430           # GN version: //gpu
431           'target_name': 'gpu',
432           'type': 'none',
433           'dependencies': [
434             'command_buffer_client',
435             'command_buffer_common',
436             'command_buffer_service',
437             'gles2_cmd_helper',
438             'gpu_config',
439             'gpu_ipc',
440           ],
441           'sources': [
442             'gpu_export.h',
443           ],
444           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
445           'msvs_disabled_warnings': [4267, ],
446         },
447         {
448           # GN version: //gpu/command_buffer/common
449           'target_name': 'command_buffer_common',
450           'type': 'static_library',
451           'includes': [
452             'command_buffer_common.gypi',
453           ],
454           'dependencies': [
455             '../base/base.gyp:base',
456             'command_buffer/command_buffer.gyp:gles2_utils',
457           ],
458           'export_dependent_settings': [
459             '../base/base.gyp:base',
460           ],
461         },
462         {
463           # Library helps make GLES2 command buffers.
464           # GN version: //gpu/command_buffer/client:gles2_cmd_helper
465           'target_name': 'gles2_cmd_helper',
466           'type': 'static_library',
467           'includes': [
468             'gles2_cmd_helper.gypi',
469           ],
470           'dependencies': [
471             'command_buffer_client',
472           ],
473           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
474           'msvs_disabled_warnings': [4267, ],
475         },
476         {
477           # GN version: //gpu/command_buffer/client
478           'target_name': 'command_buffer_client',
479           'type': 'static_library',
480           'includes': [
481             'command_buffer_client.gypi',
482           ],
483           'dependencies': [
484             'command_buffer_common',
485           ],
486           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
487           'msvs_disabled_warnings': [4267, ],
488         },
489         {
490           # GN version: //gpu/command_buffer/service
491           'target_name': 'command_buffer_service',
492           'type': 'static_library',
493           'includes': [
494             'command_buffer_service.gypi',
495             '../build/android/increase_size_for_speed.gypi',
496             # Disable LTO due to ELF section name out of range
497             # crbug.com/422251
498             '../build/android/disable_lto.gypi',
499           ],
500           'dependencies': [
501             'command_buffer_common',
502             'disk_cache_proto',
503           ],
504           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
505           'msvs_disabled_warnings': [4267, ],
506         },
507         {
508           # GN version: //gpu/ipc
509           'target_name': 'gpu_ipc',
510           'type': 'static_library',
511           'includes': [
512             'gpu_ipc.gypi',
513           ],
514           'dependencies': [
515             'command_buffer_common',
516           ],
517         },
518         {
519           'target_name': 'gpu_config',
520           'type': 'static_library',
521           'includes': [
522             'gpu_config.gypi',
523           ],
524         },
525       ],
526     },
527     { # component != static_library
528       'targets': [
529          {
530           # GN version: //gpu/command_buffer/service:disk_cache_proto
531           'target_name': 'disk_cache_proto',
532           'type': 'static_library',
533           'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
534           'variables': {
535             'proto_in_dir': 'command_buffer/service',
536             'proto_out_dir': 'gpu/command_buffer/service',
537           },
538           'includes': [ '../build/protoc.gypi' ],
539         },
540         {
541           # GN version: //gpu
542           'target_name': 'gpu',
543           'type': 'shared_library',
544           'includes': [
545             'command_buffer_client.gypi',
546             'command_buffer_common.gypi',
547             'command_buffer_service.gypi',
548             'gles2_cmd_helper.gypi',
549             'gpu_config.gypi',
550             'gpu_ipc.gypi',
551             '../build/android/increase_size_for_speed.gypi',
552           ],
553           'defines': [
554             'GPU_IMPLEMENTATION',
555           ],
556           'sources': [
557             'gpu_export.h',
558           ],
559           'dependencies': [
560             '../base/base.gyp:base',
561             'command_buffer/command_buffer.gyp:gles2_utils',
562             'disk_cache_proto',
563           ],
564           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
565           'msvs_disabled_warnings': [4267, ],
566         },
567         {
568           # GN version: //gpu/command_buffer/common
569           'target_name': 'command_buffer_common',
570           'type': 'none',
571           'dependencies': [
572             'gpu',
573           ],
574         },
575         {
576           # Library helps make GLES2 command buffers.
577           # GN version: //gpu/command_buffer/client:gles2_cmd_helper
578           'target_name': 'gles2_cmd_helper',
579           'type': 'none',
580           'dependencies': [
581             'gpu',
582           ],
583           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
584           'msvs_disabled_warnings': [4267, ],
585         },
586         {
587           # GN version: //gpu/command_buffer/client
588           'target_name': 'command_buffer_client',
589           'type': 'none',
590           'dependencies': [
591             'gpu',
592           ],
593         },
594         {
595           # GN version: //gpu/command_buffer/service
596           'target_name': 'command_buffer_service',
597           'type': 'none',
598           'dependencies': [
599             'gpu',
600           ],
601         },
602         {
603           # GN version: //gpu/ipc
604           'target_name': 'gpu_ipc',
605           'type': 'none',
606           'dependencies': [
607             'gpu',
608           ],
609         },
610       ],
611     }],
612     ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
613       'targets': [
614         {
615           'target_name': 'command_buffer_common_win64',
616           'type': 'static_library',
617           'variables': {
618             'nacl_win64_target': 1,
619           },
620           'includes': [
621             'command_buffer_common.gypi',
622           ],
623           'dependencies': [
624             '../base/base.gyp:base_win64',
625           ],
626           'defines': [
627             '<@(nacl_win64_defines)',
628             'GPU_IMPLEMENTATION',
629           ],
630           'configurations': {
631             'Common_Base': {
632               'msvs_target_platform': 'x64',
633             },
634           },
635         },
636         {
637           'target_name': 'gpu_ipc_win64',
638           'type': 'static_library',
639           'variables': {
640             'nacl_win64_target': 1,
641           },
642           'includes': [
643             'gpu_ipc.gypi',
644           ],
645           'dependencies': [
646             '../base/base.gyp:base_win64',
647             '../ipc/ipc.gyp:ipc_win64',
648             'command_buffer_common_win64',
649           ],
650           'defines': [
651             '<@(nacl_win64_defines)',
652             'GPU_IMPLEMENTATION',
653           ],
654           'configurations': {
655             'Common_Base': {
656               'msvs_target_platform': 'x64',
657             },
658           },
659         },
660       ],
661     }],
662     ['OS == "android"', {
663       'targets': [
664         {
665           'target_name': 'gl_tests_apk',
666           'type': 'none',
667           'dependencies': [
668             'gl_tests',
669           ],
670           'variables': {
671             'test_suite_name': 'gl_tests',
672           },
673           'includes': [
674             '../build/apk_test.gypi',
675           ],
676         },
677         {
678           'target_name': 'gpu_unittests_apk',
679           'type': 'none',
680           'dependencies': [
681             'gpu_unittests',
682           ],
683           'variables': {
684             'test_suite_name': 'gpu_unittests',
685           },
686           'includes': [ '../build/apk_test.gypi' ],
687         },
688         {
689           'target_name': 'gpu_perftests_apk',
690           'type': 'none',
691           'dependencies': [
692             'gpu_perftests',
693           ],
694           'variables': {
695             'test_suite_name': 'gpu_perftests',
696           },
697           'includes': [ '../build/apk_test.gypi' ],
698         },
699       ],
700     }],
701     ['OS == "win"', {
702       'targets': [
703         {
704           # TODO(kbr): port this target to the GN build.
705           'target_name': 'angle_end2end_tests',
706           'type': '<(gtest_target_type)',
707           'dependencies': [
708             '../base/base.gyp:base',
709             '../base/base.gyp:test_support_base',
710           ],
711           'includes':
712           [
713             '../third_party/angle/build/common_defines.gypi',
714             '../third_party/angle/tests/angle_end2end_tests.gypi',
715           ],
716           'sources':
717           [
718             'angle_end2end_tests_main.cc',
719           ],
720         },
721       ],
722     }],
723     ['test_isolation_mode != "noop"', {
724       'targets': [
725         {
726           'target_name': 'gpu_unittests_run',
727           'type': 'none',
728           'dependencies': [
729             'gpu_unittests',
730           ],
731           'includes': [
732             '../build/isolate.gypi',
733           ],
734           'sources': [
735             'gpu_unittests.isolate',
736           ],
737         },
738       ],
739     }],
740   ],