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

Unified Diff: examples/hello_mojo/BUILD.gn

Issue 1702103002: Add an even simpler standalone example. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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: examples/hello_mojo/BUILD.gn
diff --git a/examples/bank_app/BUILD.gn b/examples/hello_mojo/BUILD.gn
similarity index 50%
copy from examples/bank_app/BUILD.gn
copy to examples/hello_mojo/BUILD.gn
index de53fc617d8578e55898532dd2d40cf1ace3a1db..1c909a2fb23907ffecfaeddbac5522dbef34ade5 100644
--- a/examples/bank_app/BUILD.gn
+++ b/examples/hello_mojo/BUILD.gn
@@ -1,52 +1,49 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
+# Copyright 2016 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("bank_app") {
+group("hello_mojo") {
deps = [
- ":customer",
- ":bank",
+ ":hello_mojo_client",
+ ":hello_mojo_server",
]
}
-mojo_native_application("customer") {
- output_name = "customer"
-
+mojo_native_application("hello_mojo_client") {
deps = [
- ":bindings",
+ ":hello_mojo_interface",
+ "//mojo/public/c/system",
"//mojo/public/cpp/application:standalone",
"//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/system",
"//mojo/public/cpp/utility",
- "//mojo/services/vanadium/security/interfaces",
]
sources = [
- "customer.cc",
+ "hello_mojo_client.cc",
]
}
-mojo_native_application("bank") {
- output_name = "bank"
-
+mojo_native_application("hello_mojo_server") {
deps = [
- ":bindings",
- "//mojo/common",
+ ":hello_mojo_interface",
+ "//mojo/public/c/system",
"//mojo/public/cpp/application:standalone",
"//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/system",
"//mojo/public/cpp/utility",
- "//mojo/services/vanadium/security/interfaces",
]
sources = [
- "bank.cc",
+ "hello_mojo_server.cc",
]
}
-mojom("bindings") {
+mojom("hello_mojo_interface") {
sources = [
- "bank.mojom",
+ "hello_mojo.mojom",
]
}

Powered by Google App Engine
This is Rietveld 408576698