Make Display's rotation and WebScreenInfo rotation worke together on Aura.
[chromium-blink-merge.git] / gpu / BUILD.gn
blob684a0ff044e48926fcc84d33db15d1e25b1c5278
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.)
37 component("gpu") {
38   deps = [
39     "//gpu/command_buffer/client",
40     "//gpu/command_buffer/common",
41     "//gpu/command_buffer/service",
42     "//gpu/command_buffer/client:gles2_cmd_helper",
43     "//gpu/config",
44     "//gpu/ipc",
45   ]
48 source_set("gpu_unittest_utils") {
49   sources = [
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",
54   ]
56   configs += [ "//third_party/khronos:khronos_headers" ]
58   deps = [
59     ":gpu",
60     "//testing/gmock",
61     "//testing/gtest",
62     "//ui/gl:gl_unittest_utils",
63   ]
66 # TODO(GYP) This doesn't link yet.
67 if (false) {
68 test("gl_tests") {
69   sources = [
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",
94   ]
96   defines = [
97     "GLES2_C_LIB_IMPLEMENTATION",
98     "GL_GLEXT_PROTOTYPES",
99   ]
101   deps = [
102     ":gpu",
103     ":gpu_unittest_utils",
104     "//base",
105     "//base/third_party/dynamic_annotations",
106     "//testing/gmock",
107     "//testing/gtest",
108     # TODO(GYP)
109     #"<(angle_path)/src/build_angle.gyp:translator",
110     "//ui/gfx",
111     "//ui/gfx/geometry",
112     "//ui/gl",
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",
119   ]
121   # TODO(GYP)
122   #     ['OS == "android"', {
123   #       'dependencies': [
124   #         '../testing/android/native_test.gyp:native_test_native_code',
125   #       ],
126   #     }],
127   #     ['OS == "win"', {
128   #       'dependencies': [
129   #         '../third_party/angle/src/build_angle.gyp:libEGL',
130   #         '../third_party/angle/src/build_angle.gyp:libGLESv2',
131   #       ],
132   #     }],
134 }  # if (false)
136 # TODO(GYP)
137 #  gl_tests_apk
138 #  gpu_unittests_apk