Commit 62960d57 authored by Peter Wen's avatar Peter Wen Committed by Commit Bot

Android: Remove redundant group for java_lib_impl

These groups used to serve different purposes, now they are identical
and can be combined.

Tbr: hzjian@chromium.org
Bug: 1056301
Change-Id: Id2a4c6bad3a61dd23e67b83c0d4793371bdd3de2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2120736Reviewed-by: default avatarPeter Wen <wnwen@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753634}
parent 6b59abfd
...@@ -3587,30 +3587,6 @@ if (enable_java_templates) { ...@@ -3587,30 +3587,6 @@ if (enable_java_templates) {
_accumulated_public_deps += [ ":${target_name}__dex" ] _accumulated_public_deps += [ ":${target_name}__dex" ]
} }
} }
if (!_is_java_binary) {
group(target_name) {
forward_variables_from(invoker,
[
"assert_no_deps",
"data",
"data_deps",
"deps",
"visibility",
])
# Export all of our steps as "public", so that all outputs can be used
# as inputs to other targets.
public_deps = _accumulated_public_deps
if (defined(_analysis_public_deps)) {
if (!defined(data_deps)) {
data_deps = []
}
data_deps += _analysis_public_deps
}
}
}
} }
if (_is_java_binary) { if (_is_java_binary) {
...@@ -3632,24 +3608,21 @@ if (enable_java_templates) { ...@@ -3632,24 +3608,21 @@ if (enable_java_templates) {
_accumulated_public_deps += [ ":${target_name}__java_binary_script" ] _accumulated_public_deps += [ ":${target_name}__java_binary_script" ]
} }
if (_is_java_binary || group(target_name) {
(_is_annotation_processor && !defined(_final_jar_path))) { forward_variables_from(invoker,
group(target_name) { [
forward_variables_from(invoker, "assert_no_deps",
[ "data",
"assert_no_deps", "deps",
"data", "data_deps",
"deps", "visibility",
"data_deps", ])
"visibility", public_deps = _accumulated_public_deps
]) if (defined(_analysis_public_deps)) {
public_deps = _accumulated_public_deps if (!defined(data_deps)) {
if (defined(_analysis_public_deps)) { data_deps = []
if (!defined(data_deps)) {
data_deps = []
}
data_deps += _analysis_public_deps
} }
data_deps += _analysis_public_deps
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment