1 # Copyright 2014 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.
5 # GYP-to-GN project mappings:
7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client
9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common
11 # gpu.gyp:command_buffer_service => //gpu/command_buffer/service
13 # gpu/gpu.gyp:gl_in_process_context =>
14 # //gpu/command_buffer/client:gl_in_process_context
16 # gpu.gyp:gles2_cmd_helper => //gpu/command_buffer/client:gles2_cmd_helper
18 # gpu.gyp:gles2_c_lib => //gpu/command_buffer/client:gles2_c_lib
20 # gpu.gyp:gles2_implementation =>
21 # //gpu/command_buffer/client:gles2_implementation
23 # gpu.gyp:gles2_implementation_client_side_arrays =>
24 # //gpu/command_buffer/client:gles2_implementation_client_side_arrays
26 # gpu.gyp:gpu_config => //gpu/config
28 # gpu.gyp:gpu_ipc => //gpu/ipc
30 # gpu.gyp:disk_cache_proto => //gpu/command_buffer/service:disk_cache_proto
32 # command_buffer/command_buffer.gyp:gles2_utils =>
33 # //gpu/command_buffer/common
34 # (Merged in to here because the separate file exists in GYP only to break
35 # a .gyp file dependency cycle which GN doesn't have.)
39 "//gpu/command_buffer/client",
40 "//gpu/command_buffer/common",
41 "//gpu/command_buffer/service",
42 "//gpu/command_buffer/client:gles2_cmd_helper",
48 source_set("gpu_unittest_utils") {
50 "command_buffer/service/gles2_cmd_decoder_mock.cc",
51 "command_buffer/service/error_state_mock.cc",
52 "command_buffer/client/gles2_interface_stub.cc",
53 "command_buffer/client/gles2_interface_stub.h",
56 configs += [ "//third_party/khronos:khronos_headers" ]
62 "//ui/gl:gl_unittest_utils",
66 # TODO(GYP) This doesn't link yet.
70 "command_buffer/tests/compressed_texture_test.cc",
71 "command_buffer/tests/gl_bind_uniform_location_unittest.cc",
72 "command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc",
73 "command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc",
74 "command_buffer/tests/gl_depth_texture_unittest.cc",
75 "command_buffer/tests/gl_gpu_memory_buffer_unittest.cc",
76 "command_buffer/tests/gl_lose_context_chromium_unittest.cc",
77 "command_buffer/tests/gl_manager.cc",
78 "command_buffer/tests/gl_manager.h",
79 "command_buffer/tests/gl_pointcoord_unittest.cc",
80 "command_buffer/tests/gl_program_unittest.cc",
81 "command_buffer/tests/gl_query_unittest.cc",
82 "command_buffer/tests/gl_readback_unittest.cc",
83 "command_buffer/tests/gl_shared_resources_unittest.cc",
84 "command_buffer/tests/gl_stream_draw_unittest.cc",
85 "command_buffer/tests/gl_test_utils.cc",
86 "command_buffer/tests/gl_test_utils.h",
87 "command_buffer/tests/gl_tests_main.cc",
88 "command_buffer/tests/gl_texture_mailbox_unittest.cc",
89 "command_buffer/tests/gl_texture_storage_unittest.cc",
90 "command_buffer/tests/gl_unittest.cc",
91 "command_buffer/tests/gl_unittests_android.cc",
92 "command_buffer/tests/gl_virtual_contexts_unittest.cc",
93 "command_buffer/tests/occlusion_query_unittest.cc",
97 "GLES2_C_LIB_IMPLEMENTATION",
98 "GL_GLEXT_PROTOTYPES",
103 ":gpu_unittest_utils",
105 "//base/third_party/dynamic_annotations",
109 #"<(angle_path)/src/build_angle.gyp:translator",
113 #"//gpu/command_buffer/client", # These are all part of //gpu, needed?
114 #"//gpu/command_buffer/common",
115 #"//gpu/command_buffer/service",
116 #"//gpu/command_buffer/client:gles2_cmd_helper",
117 "//gpu/command_buffer/client:gles2_c_lib",
118 "//gpu/command_buffer/client:gles2_implementation_client_side_arrays",
122 # ['OS == "android"', {
124 # '../testing/android/native_test.gyp:native_test_native_code',
129 # '../third_party/angle/src/build_angle.gyp:libEGL',
130 # '../third_party/angle/src/build_angle.gyp:libGLESv2',