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

Unified Diff: examples/go/BUILD.gn

Issue 1008543002: go: echo app (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/go/BUILD.gn
diff --git a/examples/go/BUILD.gn b/examples/go/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..e082a072b7b248e8e699646b74b630c7de1c026b
--- /dev/null
+++ b/examples/go/BUILD.gn
@@ -0,0 +1,42 @@
+# 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/go/rules.gni")
+
+if (is_android) {
+ group("go") {
+ deps = [
+ ":go_echo_client",
+ ":go_echo_server",
+ ]
+ }
+
+ go_shared_library("go_echo_client") {
+ sources = [
+ "echo_client.go",
+ ]
+ deps = [
+ "//examples/echo:bindings",
+ "//mojo/go:bindings",
+ "//mojo/go:platform_cgo",
+ "//mojo/public/c/system",
+ "//mojo/public/interfaces/application",
+ "//mojo/public/platform/native:system",
+ ]
+ }
+
+ go_shared_library("go_echo_server") {
+ sources = [
+ "echo_server.go",
+ ]
+ deps = [
+ "//examples/echo:bindings",
+ "//mojo/go:bindings",
+ "//mojo/go:platform_cgo",
+ "//mojo/public/c/system",
+ "//mojo/public/interfaces/application",
+ "//mojo/public/platform/native:system",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698