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

Unified Diff: mojo/go/rules.gni

Issue 1520113002: New Mojom parser: Remove dependency on CGO. (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 | « no previous file | mojo/public/go/system/system_android.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/go/rules.gni
diff --git a/mojo/go/rules.gni b/mojo/go/rules.gni
index 50e5c234484826bd84175faf7fadd43b20fd04a7..c2cbaa57de9efc2e5b0b31360a1c509eff9791ff 100644
--- a/mojo/go/rules.gni
+++ b/mojo/go/rules.gni
@@ -101,6 +101,8 @@ template("go_test_binary") {
"-L" + rebase_path(target_out_dir) + " -l" + static_library_name +
" -lstdc++ -lpthread -lm -lglib-2.0 -lrt",
"test",
+ "-tags",
+ "include_mojo_cgo",
"-c",
] + rebase_path(invoker.sources, build_dir)
}
@@ -249,6 +251,8 @@ template("go_mojo_application") {
"-I" + rebase_path("//"),
"-L" + rebase_path(target_out_dir) + " -l" + static_library_name + "",
"build",
+ "-tags",
+ "include_mojo_cgo",
]
args += [ "-buildmode=c-shared" ]
args += rebase_path(invoker.sources, build_dir)
« no previous file with comments | « no previous file | mojo/public/go/system/system_android.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698