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

Unified Diff: mojo/go/BUILD.gn

Issue 681393002: -Build configuration for a sample Go application that can be run in Mojo (on Android). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tabs Created 6 years, 2 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/BUILD.gn ('k') | mojo/go/sample_app/README.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/go/BUILD.gn
diff --git a/mojo/go/BUILD.gn b/mojo/go/BUILD.gn
index e1903795f1702cae82a53a6e0f526638078cb158..3407eacff69d2915c4b33345aad9249f3a8ceef2 100644
--- a/mojo/go/BUILD.gn
+++ b/mojo/go/BUILD.gn
@@ -4,21 +4,36 @@
import("//build/go/rules.gni")
-group("go") {
- deps = [
- ":system_test",
- ]
-}
-
-go_test_binary("system_test") {
- sources = [
- "tests/system_test.go",
- ]
- static_library_sources = [
- "c_embedder/c_embedder.cc",
- "c_embedder/c_embedder.h",
- ]
- deps = [
- "//mojo/edk/system",
- ]
-}
+if (is_android) {
+ group("go") {
+ deps = [
+ ":go_sample_app",
+ ]
+ }
+ go_shared_library("go_sample_app") {
+ sources = [
+ "sample_app/app.go",
+ ]
+ deps = [
+ "//mojo/public/c/system:for_shared_library",
+ ]
+ }
+} else if (is_linux) {
+ group("go") {
+ deps = [
+ ":system_test",
+ ]
+ }
+ go_test_binary("system_test") {
+ sources = [
+ "tests/system_test.go",
+ ]
+ static_library_sources = [
+ "c_embedder/c_embedder.cc",
+ "c_embedder/c_embedder.h",
+ ]
+ deps = [
+ "//mojo/edk/system",
+ ]
+ }
+}
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/go/sample_app/README.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698