Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index 239f4cb6c588532c18efa7d1f7353018174dbb48..661ed253a3ad83bcb163df9d8264cb151896854c 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -553,6 +553,10 @@ if (enable_java_templates) { |
_proguard_jar_path = "//third_party/proguard/lib/proguard.jar" |
} |
_output_jar_path = invoker.output_jar_path |
+ _input_jars_paths = [] |
+ if (defined(invoker.input_jars_paths)) { |
+ _input_jars_paths += invoker.input_jars_paths |
+ } |
inputs = [ |
_proguard_jar_path, |
] |
@@ -586,6 +590,9 @@ if (enable_java_templates) { |
"--classpath", |
_rebased_android_sdk_jar, |
] |
+ foreach(c, _input_jars_paths) { |
+ args += [ "--classpath=" + c ] |
+ } |
if (proguard_verbose) { |
args += [ "--verbose" ] |
} |
@@ -809,7 +816,12 @@ if (enable_java_templates) { |
template("process_java_prebuilt") { |
set_sources_assignment_filter([]) |
- forward_variables_from(invoker, [ "testonly" ]) |
+ forward_variables_from(invoker, |
+ [ |
+ "testonly", |
+ "input_jars_paths", |
+ ]) |
+ assert(!defined(input_jars_paths) || input_jars_paths != [] || true) # Mark as used |
assert(invoker.build_config != "") |
_build_config = invoker.build_config |
@@ -1604,7 +1616,10 @@ if (enable_java_templates) { |
[ |
"jar_excluded_patterns", |
"strip_resource_classes", |
+ "input_jars_paths", |
]) |
+ assert(!defined(input_jars_paths) || input_jars_paths != [] || true) # Mark as used |
+ |
visibility = [ |
":$_ijar_target_name", |
":$_template_name", |