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

Unified Diff: mojo/public/c/gpu/BUILD.gn

Issue 1288583002: Add MGL entry points and port spinning_cube to use them (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/gles2/mgl_impl.cc ('k') | mojo/public/c/gpu/GLES2/gl2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/gpu/BUILD.gn
diff --git a/mojo/public/c/gpu/BUILD.gn b/mojo/public/c/gpu/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..afab7a14f36d2e4a15d9552fe97155773170ecc5
--- /dev/null
+++ b/mojo/public/c/gpu/BUILD.gn
@@ -0,0 +1,69 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("../../mojo_sdk.gni")
+
+config("gpu_configs") {
+ include_dirs = [ "." ]
+ defines = [ "GLES2_USE_MOJO" ]
+}
+
+group("gpu") {
+ public_configs = [ ":gpu_configs" ]
+
+ deps = [
+ ":MGL",
+ ":GLES2",
+ "../../platform/native:mgl_thunks",
+ "../../platform/native:gles2",
+ ]
+}
+
+group("gpu_onscreen") {
+ public_deps = [
+ ":MGL_onscreen",
+ ]
+
+ deps = [
+ ":gpu",
+ "../../platform/native:mgl_onscreen_thunks",
+ ]
+}
+
+mojo_sdk_source_set("MGL") {
+ sources = [
+ "MGL/mgl.h",
+ "MGL/mgl_types.h",
+ ]
+
+ mojo_sdk_public_deps = [ "mojo/public/c/system" ]
+}
+
+mojo_sdk_source_set("MGL_onscreen") {
+ sources = [
+ "MGL/mgl_onscreen.h",
+ ]
+
+ public_deps = [
+ ":MGL",
+ ]
+}
+
+mojo_sdk_source_set("GLES2") {
+ sources = [
+ "GLES2/gl2.h",
+ "GLES2/gl2ext.h",
+ "GLES2/gl2mojo.h",
+ ]
+
+ public_deps = [
+ ":KHR",
+ ]
+}
+
+mojo_sdk_source_set("KHR") {
+ sources = [
+ "KHR/khrplatform.h",
+ ]
+}
« no previous file with comments | « mojo/gles2/mgl_impl.cc ('k') | mojo/public/c/gpu/GLES2/gl2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698