Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index 6a7cda3bc6c150809c8e7defbf06f6d4f11a2d84..3c772ba363ff26571a27d434bb1935095263236d 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -2109,6 +2109,7 @@ if (enable_java_templates) { |
emma_instr(_emma_instr_target_name) { |
forward_variables_from(invoker, |
[ |
+ "deps", |
"java_files", |
"java_sources_file", |
]) |
@@ -2116,9 +2117,10 @@ if (enable_java_templates) { |
input_jar_path = _process_prebuilt_jar_path |
output_jar_path = _final_jar_path |
- deps = [ |
- ":$_process_prebuilt_target_name", |
- ] |
+ if (!defined(deps)) { |
+ deps = [] |
+ } |
+ deps += [ ":$_process_prebuilt_target_name" ] |
} |
} |