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

Unified Diff: build/go/rules.gni

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « build/go/go.py ('k') | build/ios/grit_whitelist.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/go/rules.gni
diff --git a/build/go/rules.gni b/build/go/rules.gni
index cc52bc88d0652c13d8616d8af97ee4f7d64d49ad..ab703d6c96955394ecf4e43f6ed10153c8a7accb 100644
--- a/build/go/rules.gni
+++ b/build/go/rules.gni
@@ -60,39 +60,3 @@ template("go_test_binary") {
] + rebase_path(invoker.sources, build_dir)
}
}
-
-template("go_shared_library") {
- # Only available on android for now.
- assert(is_android)
- assert(defined(invoker.sources))
- assert(go_build_tool != "")
-
- static_library_name = target_name + "_static_library"
-
- static_library(static_library_name) {
- complete_static_lib = true
- deps = invoker.deps
- }
-
- action(target_name) {
- deps = [ ":$static_library_name" ]
- script = "//build/go/go.py"
- outputs = [ "${target_out_dir}/${target_name}" ]
- # Since go test does not permit specifying an output directory or output
- # binary name, we create a temporary build directory, and the python
- # script will later identify the output, copy it to the target location,
- # and clean up the temporary build directory.
- build_dir = "${target_out_dir}/${target_name}_build"
- args = [
- "--",
- "CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 ${go_build_tool}",
- rebase_path(build_dir, root_build_dir),
- rebase_path(target_out_dir, root_build_dir) + "/${target_name}",
- rebase_path("//", root_build_dir),
- "-I" + rebase_path("//"),
- " -L" + rebase_path(target_out_dir) +
- " -l" + static_library_name + "",
- "build -ldflags=-shared",
- ] + rebase_path(invoker.sources, build_dir)
- }
-}
« no previous file with comments | « build/go/go.py ('k') | build/ios/grit_whitelist.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698