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

Side by Side Diff: gpu/command_buffer/client/BUILD.gn

Issue 1591813002: Make //gpu/* pass gn check (and make it gn checked). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 4 years, 11 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
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/client/buffer_tracker.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 source_set("client") { 5 source_set("client") {
6 sources = [ 6 sources = [
7 "cmd_buffer_helper.cc", 7 "cmd_buffer_helper.cc",
8 "cmd_buffer_helper.h", 8 "cmd_buffer_helper.h",
9 "fenced_allocator.cc", 9 "fenced_allocator.cc",
10 "fenced_allocator.h", 10 "fenced_allocator.h",
11 "gpu_control.h", 11 "gpu_control.h",
12 "mapped_memory.cc", 12 "mapped_memory.cc",
13 "mapped_memory.h", 13 "mapped_memory.h",
14 "ring_buffer.cc", 14 "ring_buffer.cc",
15 "ring_buffer.h", 15 "ring_buffer.h",
16 "transfer_buffer.cc", 16 "transfer_buffer.cc",
17 "transfer_buffer.h", 17 "transfer_buffer.h",
18 ] 18 ]
19 19
20 configs += [ 20 configs += [
21 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 21 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
22 "//build/config/compiler:no_size_t_to_int_warning", 22 "//build/config/compiler:no_size_t_to_int_warning",
23 "//gpu:gpu_implementation", 23 "//gpu:gpu_implementation",
24 ] 24 ]
25 25
26 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] 26 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
27 27
28 deps = [ 28 deps = [
29 "//base",
29 "//gpu/command_buffer/common", 30 "//gpu/command_buffer/common",
31 "//gpu/command_buffer/common:gles2_utils",
30 ] 32 ]
31 } 33 }
32 34
33 group("gles2_cmd_helper") { 35 group("gles2_cmd_helper") {
34 if (is_component_build) { 36 public_deps = [
35 deps = [ 37 ":gles2_cmd_helper_sources",
36 "//gpu", 38 ]
37 ]
38 } else {
39 deps = [
40 ":gles2_cmd_helper_sources",
41 ]
42 }
43 } 39 }
44 40
45 source_set("gles2_cmd_helper_sources") { 41 source_set("gles2_cmd_helper_sources") {
46 visibility = [ 42 visibility = [
47 ":gles2_cmd_helper", 43 ":gles2_cmd_helper",
48 "//gpu", 44 "//gpu",
49 "//mojo/gles2:control_thunks", 45 "//mojo/gles2:control_thunks",
50 ] 46 ]
51 sources = [ 47 sources = [
52 "gles2_cmd_helper.cc", 48 "gles2_cmd_helper.cc",
53 "gles2_cmd_helper.h", 49 "gles2_cmd_helper.h",
54 "gles2_cmd_helper_autogen.h", 50 "gles2_cmd_helper_autogen.h",
55 ] 51 ]
56 52
57 configs += [ 53 configs += [
58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 54 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
59 "//build/config/compiler:no_size_t_to_int_warning", 55 "//build/config/compiler:no_size_t_to_int_warning",
60 "//gpu:gpu_implementation", 56 "//gpu:gpu_implementation",
61 ] 57 ]
62 58
63 deps = [ 59 deps = [
64 ":client", 60 ":client",
61 "//gpu/command_buffer/common",
65 ] 62 ]
66 } 63 }
67 64
68 gles2_c_lib_source_files = [ 65 gles2_c_lib_source_files = [
69 "gles2_c_lib.cc", 66 "gles2_c_lib.cc",
70 "gles2_c_lib_autogen.h", 67 "gles2_c_lib_autogen.h",
71 "gles2_c_lib_export.h", 68 "gles2_c_lib_export.h",
72 "gles2_lib.cc", 69 "gles2_lib.cc",
73 "gles2_lib.h", 70 "gles2_lib.h",
74 ] 71 ]
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 112 }
116 113
117 source_set("gpu_memory_buffer_manager") { 114 source_set("gpu_memory_buffer_manager") {
118 sources = [ 115 sources = [
119 "gpu_memory_buffer_manager.cc", 116 "gpu_memory_buffer_manager.cc",
120 "gpu_memory_buffer_manager.h", 117 "gpu_memory_buffer_manager.h",
121 ] 118 ]
122 configs += [ "//gpu:gpu_implementation" ] 119 configs += [ "//gpu:gpu_implementation" ]
123 deps = [ 120 deps = [
124 "//ui/gfx", 121 "//ui/gfx",
122 "//ui/gfx/geometry",
125 ] 123 ]
126 } 124 }
127 125
128 # Library emulates GLES2 using command_buffers. 126 # Library emulates GLES2 using command_buffers.
129 component("gles2_implementation") { 127 component("gles2_implementation") {
130 sources = gles2_implementation_source_files 128 sources = gles2_implementation_source_files
131 129
132 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
133 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 131 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
134 132
135 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] 133 defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
136 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] 134 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
137 135
138 deps = [ 136 deps = [
137 ":client",
139 ":gles2_cmd_helper", 138 ":gles2_cmd_helper",
140 ":gles2_interface", 139 ":gles2_interface",
141 "//base", 140 "//base",
142 "//gpu/command_buffer/common", 141 "//gpu/command_buffer/common",
142 "//gpu/command_buffer/common:gles2_utils",
143 "//ui/gfx/geometry", 143 "//ui/gfx/geometry",
144 ] 144 ]
145 } 145 }
146 146
147 # Library emulates GLES2 using command_buffers. 147 # Library emulates GLES2 using command_buffers.
148 component("gles2_implementation_no_check") { 148 component("gles2_implementation_no_check") {
149 sources = gles2_implementation_source_files 149 sources = gles2_implementation_source_files
150 150
151 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 151 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
152 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 152 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
153 153
154 defines = [ 154 defines = [
155 "GLES2_IMPL_IMPLEMENTATION", 155 "GLES2_IMPL_IMPLEMENTATION",
156 "GLES2_CONFORMANCE_TESTS=1", 156 "GLES2_CONFORMANCE_TESTS=1",
157 ] 157 ]
158 158
159 deps = [ 159 deps = [
160 ":client",
160 ":gles2_cmd_helper", 161 ":gles2_cmd_helper",
162 ":gles2_interface",
161 "//base", 163 "//base",
164 "//gpu/command_buffer/common",
162 "//gpu/command_buffer/common:gles2_utils", 165 "//gpu/command_buffer/common:gles2_utils",
163 "//ui/gfx", 166 "//ui/gfx",
164 "//ui/gfx/geometry", 167 "//ui/gfx/geometry",
165 ] 168 ]
166 } 169 }
167 170
168 component("gl_in_process_context") { 171 component("gl_in_process_context") {
169 sources = [ 172 sources = [
170 "gl_in_process_context.cc", 173 "gl_in_process_context.cc",
171 "gl_in_process_context.h", 174 "gl_in_process_context.h",
172 "gl_in_process_context_export.h", 175 "gl_in_process_context_export.h",
173 ] 176 ]
174 177
175 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ] 178 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ]
176 179
177 deps = [ 180 deps = [
178 ":gles2_implementation", 181 ":gles2_implementation",
179 ":gpu_memory_buffer_manager", 182 ":gpu_memory_buffer_manager",
183 "//base",
184 "//base/third_party/dynamic_annotations",
180 "//gpu", 185 "//gpu",
181 "//gpu/command_buffer/common:gles2_utils", 186 "//gpu/command_buffer/common:gles2_utils",
182 "//base",
183 "//base/third_party/dynamic_annotations",
184 "//ui/gfx/geometry", 187 "//ui/gfx/geometry",
185 "//ui/gl", 188 "//ui/gl",
186 ] 189 ]
187 } 190 }
188 191
189 component("gles2_c_lib") { 192 component("gles2_c_lib") {
190 sources = gles2_c_lib_source_files 193 sources = gles2_c_lib_source_files
191 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] 194 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ]
192 195
193 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 196 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
(...skipping 20 matching lines...) Expand all
214 ] 217 ]
215 deps = [ 218 deps = [
216 ":client", 219 ":client",
217 ":gles2_implementation_no_check", 220 ":gles2_implementation_no_check",
218 ":gles2_interface", 221 ":gles2_interface",
219 "//base", 222 "//base",
220 "//base/third_party/dynamic_annotations", 223 "//base/third_party/dynamic_annotations",
221 "//gpu/command_buffer/common", 224 "//gpu/command_buffer/common",
222 ] 225 ]
223 } 226 }
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/client/buffer_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698