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

Unified Diff: build/config/android/rules.gni

Issue 1317853006: GN: Make the wrapper script generated for junit work without extra args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 190cd20414a9b13d681cebcf768508ebdacae617..8eb3f451cdead422d837d54a5e0eeeb5a621b9f0 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -796,19 +796,20 @@ template("java_strings_grd_prebuilt") {
# Variables
# deps: Specifies the dependencies of this target. Java targets in this list
# will be included in the executable (and the javac classpath).
-#
# java_files: List of .java files included in this library.
# srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
# will be added to java_files and be included in this library.
# srcjars: List of srcjars to be included in this library, together with the
# ones obtained from srcjar_deps.
-#
# bypass_platform_checks: Disables checks about cross-platform (Java/Android)
# dependencies for this target. This will allow depending on an
# android_library target, for example.
-#
# chromium_code: If true, extra analysis warning/errors will be enabled.
# enable_errorprone: If true, enables the errorprone compiler.
+# main_class: When specified, a wrapper script is created within
+# $target_out_dir/bin to launch the binary with the given class as the
+# entrypoint.
+# wrapper_script_args: List of additional arguments for the wrapper script.
#
# data_deps, testonly
#
@@ -860,6 +861,10 @@ template("junit_binary") {
forward_variables_from(invoker, "*")
bypass_platform_checks = true
main_class = "org.chromium.testing.local.JunitTestMain"
+ wrapper_script_args = [
+ "-test-jars",
+ "$target_name.jar",
+ ]
testonly = true
deps += [
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698