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

Unified Diff: examples/surfaces_app/BUILD.gn

Issue 1537803002: Revert "Delete the Surfaces service." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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 | « examples/bitmap_uploader/bitmap_uploader.cc ('k') | examples/surfaces_app/child.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/BUILD.gn
diff --git a/examples/surfaces_app/BUILD.gn b/examples/surfaces_app/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..25a0b863a287dbed07d45c06ce17eff9ff939f25
--- /dev/null
+++ b/examples/surfaces_app/BUILD.gn
@@ -0,0 +1,142 @@
+# Copyright 2014 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/public/mojo_application.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
+
+group("surfaces_app") {
+ deps = [
+ ":child_app",
+ ":child_gl_app",
+ ":parent_app",
+ ]
+}
+
+mojo_native_application("parent_app") {
+ output_name = "surfaces_app"
+
+ deps = [
+ ":bindings",
+ ":util",
+ "//base",
+ "//cc",
+ "//cc/surfaces",
+ "//cc/surfaces:surface_id",
+ "//skia",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//mojo/application",
+ "//mojo/common",
+ "//mojo/converters/geometry",
+ "//mojo/converters/surfaces",
+ "//mojo/environment:chromium",
+ "//mojo/public/cpp/system",
+ "//mojo/services/geometry/interfaces",
+ "//mojo/services/gpu/interfaces",
+ "//mojo/services/native_viewport/interfaces",
+ "//mojo/services/surfaces/interfaces",
+ ]
+
+ sources = [
+ "embedder.cc",
+ "embedder.h",
+ "surfaces_app.cc",
+ ]
+}
+
+mojo_native_application("child_app") {
+ output_name = "surfaces_child_app"
+
+ deps = [
+ ":bindings",
+ ":util",
+ "//base",
+ "//cc",
+ "//cc/surfaces",
+ "//cc/surfaces:surface_id",
+ "//mojo/application",
+ "//mojo/common",
+ "//mojo/converters/geometry",
+ "//mojo/converters/surfaces",
+ "//mojo/environment:chromium",
+ "//mojo/public/cpp/bindings",
+ "//mojo/services/geometry/interfaces",
+ "//mojo/services/surfaces/interfaces",
+ "//mojo/services/surfaces/interfaces:surface_id",
+ "//skia",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ ]
+
+ sources = [
+ "child_app.cc",
+ "child_impl.cc",
+ "child_impl.h",
+ ]
+}
+
+mojo_native_application("child_gl_app") {
+ output_name = "surfaces_child_gl_app"
+
+ deps = [
+ ":bindings",
+ ":util",
+ "//base",
+ "//cc",
+ "//cc/surfaces",
+ "//cc/surfaces:surface_id",
+ "//examples/spinning_cube:lib",
+ "//gpu/command_buffer/common",
+ "//mojo/application",
+ "//mojo/common",
+ "//mojo/converters/geometry",
+ "//mojo/converters/surfaces",
+ "//mojo/environment:chromium",
+ "//mojo/public/c/gpu",
+ "//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/environment",
+ "//mojo/public/cpp/system",
+ "//mojo/services/geometry/interfaces",
+ "//mojo/services/gpu/interfaces",
+ "//mojo/services/surfaces/interfaces",
+ "//mojo/services/surfaces/interfaces:surface_id",
+ "//skia",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ ]
+
+ sources = [
+ "child_gl_app.cc",
+ "child_gl_impl.cc",
+ "child_gl_impl.h",
+ ]
+}
+
+source_set("util") {
+ deps = [
+ "//cc",
+ "//skia",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ ]
+
+ sources = [
+ "surfaces_util.cc",
+ "surfaces_util.h",
+ ]
+}
+
+mojom("bindings") {
+ deps = [
+ "//mojo/services/geometry/interfaces",
+ "//mojo/services/surfaces/interfaces",
+ "//mojo/services/surfaces/interfaces:surface_id",
+ ]
+
+ import_dirs = [ get_path_info("../../mojo/services", "abspath") ]
+
+ sources = [
+ "child.mojom",
+ ]
+}
« no previous file with comments | « examples/bitmap_uploader/bitmap_uploader.cc ('k') | examples/surfaces_app/child.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698