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