diff options
author | 2022-04-26 09:38:20 -0400 | |
---|---|---|
committer | 2022-05-13 19:47:48 -0400 | |
commit | 3bf97bd1c066cddd49e1ae1936bdeda0fbca805c (patch) | |
tree | 23e9257f1f244f58091938731abf8705ecf2bf78 /java/java.go | |
parent | d2ee3a6afa9ea50a7bcc19a6e6f7eb0305e8d51c (diff) |
Clean up some bp2build technical debt
Previously we ran mutators in bp2build mode to add dependencies, now we
look up modules by name directly. Remove workarounds to allow bp2build
mode to not fail when adding/handling dependencies.
Test: m bp2build
Change-Id: Ibf6fd905150cac306e5c395902ef28f609f4df2a
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go index 079d4b9e7..9ecd362fc 100644 --- a/java/java.go +++ b/java/java.go @@ -1245,10 +1245,10 @@ func (j *Binary) GenerateAndroidBuildActions(ctx android.ModuleContext) { } func (j *Binary) DepsMutator(ctx android.BottomUpMutatorContext) { - if ctx.Arch().ArchType == android.Common || ctx.BazelConversionMode() { + if ctx.Arch().ArchType == android.Common { j.deps(ctx) } - if ctx.Arch().ArchType != android.Common || ctx.BazelConversionMode() { + if ctx.Arch().ArchType != android.Common { // These dependencies ensure the host installation rules will install the jar file and // the jni libraries when the wrapper is installed. ctx.AddVariationDependencies(nil, jniInstallTag, j.binaryProperties.Jni_libs...) |