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

Side by Side Diff: mojo/public/c/BUILD.gn

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo Created 4 years, 4 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 | « mojo/nacl/nonsfi/BUILD.gn ('k') | mojo/public/c/gpu/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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import("../mojo_sdk.gni") 5 import("../mojo_sdk.gni")
6 6
7 config("c_config") { 7 config("c_config") {
8 include_dirs = [ "include" ] 8 include_dirs = [ "include" ]
9 } 9 }
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 "tests/environment/async_waiter_perftest_helpers.h", 146 "tests/environment/async_waiter_perftest_helpers.h",
147 ] 147 ]
148 148
149 public_deps = [ 149 public_deps = [
150 ":environment", 150 ":environment",
151 ] 151 ]
152 152
153 mojo_sdk_deps = [ "mojo/public/cpp/system" ] 153 mojo_sdk_deps = [ "mojo/public/cpp/system" ]
154 } 154 }
155 155
156 # gpu / gpu_onscreen -----------------------------------------------------------
157
158 # TODO(vtl): Rationalize this to be more like the others. Probably, we should
159 # just have :GLES2, :MGL, etc. targets (and no :gpu/:gpu_onscreen).
160
161 group("gpu") {
162 public_deps = [
163 ":GLES2",
164 ":MGL",
165 ":MGL_signal_sync_point",
166 ]
167
168 deps = [
169 "../platform/native:gles2_thunks",
170 ]
171 if (!is_nacl) {
172 deps += [ "../platform/native:mgl_thunks" ]
173 }
174 }
175
176 group("gpu_onscreen") {
177 public_deps = [
178 ":MGL_onscreen",
179 ":gpu",
180 ]
181
182 if (!is_nacl) {
183 deps = [
184 "../platform/native:mgl_onscreen_thunks",
185 ]
186 }
187 }
188
189 mojo_sdk_source_set("MGL") {
190 public_configs = [ ":c_config" ]
191
192 sources = [
193 "include/MGL/mgl.h",
194 "include/MGL/mgl_types.h",
195 ]
196
197 public_deps = [
198 ":system",
199 ]
200 }
201
202 mojo_sdk_source_set("MGL_onscreen") {
203 public_configs = [ ":c_config" ]
204
205 sources = [
206 "include/MGL/mgl_onscreen.h",
207 ]
208
209 public_deps = [
210 ":MGL",
211 ]
212 }
213
214 mojo_sdk_source_set("MGL_echo") {
215 public_configs = [ ":c_config" ]
216
217 sources = [
218 "include/MGL/mgl_echo.h",
219 ]
220
221 public_deps = [
222 ":MGL",
223 ]
224 }
225
226 mojo_sdk_source_set("MGL_signal_sync_point") {
227 public_configs = [ ":c_config" ]
228
229 sources = [
230 "include/MGL/mgl_signal_sync_point.h",
231 ]
232
233 public_deps = [
234 ":MGL",
235 ]
236 }
237
238 mojo_sdk_source_set("GLES2") {
239 public_configs = [ ":c_config" ]
240
241 sources = [
242 "include/GLES2/gl2.h",
243 "include/GLES2/gl2ext.h",
244 "include/GLES2/gl2extmojo.h",
245 "include/GLES2/gl2mojo_autogen.h",
246 "include/GLES2/gl2mojo_internal.h",
247 "include/GLES2/gl2platform.h",
248 ]
249
250 public_deps = [
251 ":KHR",
252 ]
253 }
254
255 mojo_sdk_source_set("KHR") {
256 public_configs = [ ":c_config" ]
257
258 sources = [
259 "include/KHR/khrplatform.h",
260 ]
261 }
262
156 # system ----------------------------------------------------------------------- 263 # system -----------------------------------------------------------------------
157 264
158 # Headers in include/mojo/system (to be included as <mojo/system/HEADER.h>). 265 # Headers in include/mojo/system (to be included as <mojo/system/HEADER.h>).
159 # 266 #
160 # Depends on :common. 267 # Depends on :common.
161 268
162 mojo_sdk_source_set("system") { 269 mojo_sdk_source_set("system") {
163 public_configs = [ ":c_config" ] 270 public_configs = [ ":c_config" ]
164 271
165 sources = [ 272 sources = [
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 349
243 cflags = [ "-Wundef" ] 350 cflags = [ "-Wundef" ]
244 351
245 sources = [ 352 sources = [
246 "tests/compile/pure_c.c", 353 "tests/compile/pure_c.c",
247 "tests/compile/pure_cpp.cc", 354 "tests/compile/pure_cpp.cc",
248 ] 355 ]
249 356
250 mojo_sdk_deps = [ "mojo/public/c:environment" ] 357 mojo_sdk_deps = [ "mojo/public/c:environment" ]
251 } 358 }
OLDNEW
« no previous file with comments | « mojo/nacl/nonsfi/BUILD.gn ('k') | mojo/public/c/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698