[Build] Pass accurate GN target name to compile_java.py
The |target_name| in the bytecode_processor(), android_lint() and compile_java() templates is not fully qualified. For instance monochrome_bundle__lint. Change-Id: Ic5edd3a6338711a72c5eb7fc44bf242abdf202ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2960828 Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by: Peter Wen <wnwen@chromium.org> Cr-Commit-Position: refs/heads/master@{#892130}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
d91d32fc3e
commit
d42cf174c3
@ -1038,7 +1038,7 @@ if (enable_java_templates) {
|
||||
|
||||
args = [
|
||||
"--target-name",
|
||||
get_label_info(target_name, "label_no_toolchain"),
|
||||
get_label_info(":${target_name}", "label_no_toolchain"),
|
||||
"--depfile",
|
||||
rebase_path(depfile, root_build_dir),
|
||||
"--lint-binary-path",
|
||||
@ -2022,7 +2022,7 @@ if (enable_java_templates) {
|
||||
_rebased_build_config = rebase_path(invoker.build_config, root_build_dir)
|
||||
args = [
|
||||
"--target-name",
|
||||
get_label_info(target_name, "label_no_toolchain"),
|
||||
get_label_info(":${target_name}", "label_no_toolchain"),
|
||||
"--script",
|
||||
rebase_path(_bytecode_checker_script, root_build_dir),
|
||||
"--gn-target=${invoker.target_label}",
|
||||
@ -3114,7 +3114,7 @@ if (enable_java_templates) {
|
||||
"--jar-path=$_rebased_output_jar_path",
|
||||
"--java-srcjars=$_rebased_java_srcjars",
|
||||
"--target-name",
|
||||
get_label_info(target_name, "label_no_toolchain"),
|
||||
get_label_info(":${target_name}", "label_no_toolchain"),
|
||||
]
|
||||
|
||||
if (defined(invoker.header_jar_path)) {
|
||||
|
Reference in New Issue
Block a user