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

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: fix android build 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
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..8c300d0573dd6d0a18a469d4f634b28694dab1e8
--- /dev/null
+++ b/mojo/public/c/gpu/BUILD.gn
@@ -0,0 +1,76 @@
+# 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",
+ ]
+
+ public_deps = [
+ ":GLES2",
viettrungluu 2015/08/12 02:48:10 I don't think this dependency is needed, is it?
jamesr 2015/08/13 19:42:27 That's right, removed
+ ]
+
+ mojo_sdk_public_deps = [
+ "mojo/public/c/environment",
+ "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",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698