Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: gpu/BUILD.gn

Issue 300973003: Add CC to the GN build, work on GPU more (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/BUILD.gn ('k') | gpu/command_buffer/client/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GYP-to-GN project mappings: 5 # GYP-to-GN project mappings:
6 # 6 #
7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client 7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client
8 # 8 #
9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common 9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common
10 # 10 #
11 # gpu.gyp:gles2_cmd_helper => //gpu/command_buffer/client:gles2_cmd_helper 11 # gpu.gyp:gles2_cmd_helper => //gpu/command_buffer/client:gles2_cmd_helper
12 # 12 #
13 # gpu.gyp:gles2_c_lib => //gpu/command_buffer/client:gles2_c_lib 13 # gpu.gyp:gles2_c_lib => //gpu/command_buffer/client:gles2_c_lib
14 # 14 #
15 # gpu.gyp:gles2_implementation => 15 # gpu.gyp:gles2_implementation =>
16 # //gpu_command_buffer/client:gles2_implementation 16 # //gpu/command_buffer/client:gles2_implementation
17
18 # gpu.gyp:gles2_implementation_client_side_arrays =>
19 # //gpu/command_buffer/client:gles2_implementation_client_side_arrays
20 #
21 # gpu.gyp:gpu_config => //gpu/config
22 #
23 # gpu.gyp:gpu_ipc => //gpu/ipc
24 #
25 # gpu.gyp:disk_cache_proto => //gpu/command_buffer/service:disk_cache_proto
17 # 26 #
18 # command_buffer/command_buffer.gyp:gles2_utils => 27 # command_buffer/command_buffer.gyp:gles2_utils =>
19 # //gpu/command_buffer/common 28 # //gpu/command_buffer/common
20 # (Merged in to here because the separate file exists in GYP only to break 29 # (Merged in to here because the separate file exists in GYP only to break
21 # a .gyp file dependency cycle which GN doesn't have.) 30 # a .gyp file dependency cycle which GN doesn't have.)
31
32 component("gpu") {
33 deps = [
34 "//gpu/command_buffer/client",
35 "//gpu/command_buffer/common",
36 "//gpu/command_buffer/service",
37 "//gpu/command_buffer/client:gles2_cmd_helper",
38 "//gpu/config",
39 "//gpu/ipc",
40 ]
41 }
42
43 source_set("gpu_unittest_utils") {
44 sources = [
45 "command_buffer/service/gles2_cmd_decoder_mock.cc",
46 "command_buffer/service/error_state_mock.cc",
47 "command_buffer/client/gles2_interface_stub.cc",
48 "command_buffer/client/gles2_interface_stub.h",
49 ]
50
51 configs += [ "//third_party/khronos:khronos_headers" ]
52
53 deps = [
54 ":gpu",
55 "//testing/gmock",
56 "//testing/gtest",
57 "//ui/gl:gl_unittest_utils",
58 ]
59 }
60
61 # TODO(GYP) This doesn't link yet.
62 if (false) {
63 test("gl_tests") {
64 sources = [
65 "command_buffer/tests/compressed_texture_test.cc",
66 "command_buffer/tests/gl_bind_uniform_location_unittest.cc",
67 "command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc",
68 "command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc",
69 "command_buffer/tests/gl_depth_texture_unittest.cc",
70 "command_buffer/tests/gl_gpu_memory_buffer_unittest.cc",
71 "command_buffer/tests/gl_lose_context_chromium_unittest.cc",
72 "command_buffer/tests/gl_manager.cc",
73 "command_buffer/tests/gl_manager.h",
74 "command_buffer/tests/gl_pointcoord_unittest.cc",
75 "command_buffer/tests/gl_program_unittest.cc",
76 "command_buffer/tests/gl_query_unittest.cc",
77 "command_buffer/tests/gl_readback_unittest.cc",
78 "command_buffer/tests/gl_shared_resources_unittest.cc",
79 "command_buffer/tests/gl_stream_draw_unittest.cc",
80 "command_buffer/tests/gl_test_utils.cc",
81 "command_buffer/tests/gl_test_utils.h",
82 "command_buffer/tests/gl_tests_main.cc",
83 "command_buffer/tests/gl_texture_mailbox_unittest.cc",
84 "command_buffer/tests/gl_texture_storage_unittest.cc",
85 "command_buffer/tests/gl_unittest.cc",
86 "command_buffer/tests/gl_unittests_android.cc",
87 "command_buffer/tests/gl_virtual_contexts_unittest.cc",
88 "command_buffer/tests/occlusion_query_unittest.cc",
89 ]
90
91 defines = [
92 "GLES2_C_LIB_IMPLEMENTATION",
93 "GL_GLEXT_PROTOTYPES",
94 ]
95
96 deps = [
97 ":gpu",
98 ":gpu_unittest_utils",
99 "//base",
100 "//base/third_party/dynamic_annotations",
101 "//testing/gmock",
102 "//testing/gtest",
103 # TODO(GYP)
104 #"<(angle_path)/src/build_angle.gyp:translator",
105 "//ui/gfx",
106 "//ui/gfx/geometry",
107 "//ui/gl",
108 #"//gpu/command_buffer/client", # These are all part of //gpu, needed?
109 #"//gpu/command_buffer/common",
110 #"//gpu/command_buffer/service",
111 #"//gpu/command_buffer/client:gles2_cmd_helper",
112 "//gpu/command_buffer/client:gles2_c_lib",
113 "//gpu/command_buffer/client:gles2_implementation_client_side_arrays",
114 ]
115
116 # TODO(GYP)
117 # ['OS == "android"', {
118 # 'dependencies': [
119 # '../testing/android/native_test.gyp:native_test_native_code',
120 # ],
121 # }],
122 # ['OS == "win"', {
123 # 'dependencies': [
124 # '../third_party/angle/src/build_angle.gyp:libEGL',
125 # '../third_party/angle/src/build_angle.gyp:libGLESv2',
126 # ],
127 # }],
128 }
129 } # if (false)
130
131 # TODO(GYP)
132 # gl_tests_apk
133 # gpu_unittests_apk
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | gpu/command_buffer/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698