aboutsummaryrefslogtreecommitdiffstats
path: root/java/java.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-05-28 14:06:17 -0700
committerColin Cross <ccross@android.com>2019-05-29 08:38:53 -0700
commit7b8a567f44b3fdb30eac8211e8ed8e27fb162797 (patch)
tree2c680e8e77686f73d76b1f27a687a6d82f2fe9c5 /java/java.go
parentf2562eb417e7671b870a2c5cb8391566782f73ea (diff)
downloadbuild_soong-7b8a567f44b3fdb30eac8211e8ed8e27fb162797.tar.gz
build_soong-7b8a567f44b3fdb30eac8211e8ed8e27fb162797.tar.bz2
build_soong-7b8a567f44b3fdb30eac8211e8ed8e27fb162797.zip
Don't build hiddenapi flags or encode dex for unbundled builds
Builds with TARGET_BUILD_APPS shouldn't build the hiddenapi flags or encode dex files even if frameworks/base exists. Bug: 133343287 Test: mainline modules build Change-Id: I0647451420fd09bb680808b35e1ad3b8f514ba46 Merged-In: I0647451420fd09bb680808b35e1ad3b8f514ba46 (cherry picked from commit 9c74a1ee855b1dcf4871a4cc40f317bd765ab7fd)
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/java.go b/java/java.go
index bf738c4d..ff6bbacc 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1270,9 +1270,11 @@ func (j *Module) compile(ctx android.ModuleContext, extraSrcJars ...android.Path
return
}
- // Hidden API CSV generation and dex encoding
- dexOutputFile = j.hiddenAPI.hiddenAPI(ctx, dexOutputFile, j.implementationJarFile,
- j.deviceProperties.UncompressDex)
+ if !ctx.Config().UnbundledBuild() {
+ // Hidden API CSV generation and dex encoding
+ dexOutputFile = j.hiddenAPI.hiddenAPI(ctx, dexOutputFile, j.implementationJarFile,
+ j.deviceProperties.UncompressDex)
+ }
// merge dex jar with resources if necessary
if j.resourceJar != nil {