Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index 7ed12911a10212f50b25aeb07f27c7c56ded8c7c..41fd75f352fe41b71e260f33da6535108822f1b2 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -896,6 +896,18 @@ template("java_library_impl") { |
] |
output = _dex_path |
} |
+ |
+ if (defined(invoker.standalone_dex_path)) { |
+ _final_deps += [ ":${_template_name}__standalone_dex" ] |
+ _rebased_build_config = rebase_path(_build_config, root_build_dir) |
+ dex("${_template_name}__standalone_dex") { |
+ sources = [_jar_path] |
+ inputs = [_build_config] |
+ output = invoker.standalone_dex_path |
+ dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" |
+ args = [ "--inputs=@FileArg($dex_arg_key)" ] |
+ } |
+ } |
} |
group(target_name) { |