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

Unified Diff: mojo/go/rules.gni

Issue 979693002: Specify inputs and testonly in Go GN rules (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | 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 78c325260472a75544d05af051943ce472b1f097..00b3872112c8c9bede2fc5f9929f976cb8e3f981 100644
--- a/mojo/go/rules.gni
+++ b/mojo/go/rules.gni
@@ -29,16 +29,19 @@ template("go_test_binary") {
static_library_name = target_name + "_static_library"
static_library(static_library_name) {
+ testonly = true
sources = invoker.static_library_sources
deps = invoker.deps
complete_static_lib = true
}
action(target_name) {
+ testonly = true
deps = [
":$static_library_name",
]
script = "//mojo/go/go.py"
+ inputs = invoker.sources
outputs = [
"${target_out_dir}/${target_name}",
]
@@ -82,6 +85,7 @@ template("go_shared_library") {
":$static_library_name",
]
script = "//mojo/go/go.py"
+ inputs = invoker.sources
outputs = [
"${target_out_dir}/${target_name}",
]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698