dex_import that isn't available for platform isn't installed am: afd3d11a79

Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/11787985

Change-Id: I617bce4198e4e4b4dc6779246f0bfadcb6a442a4
This commit is contained in:
Jiyong Park 2020-06-08 13:13:27 +00:00 committed by Automerger Merge Worker
commit 3a3c871410
1 changed files with 4 additions and 2 deletions

View File

@ -2757,8 +2757,10 @@ func (j *DexImport) GenerateAndroidBuildActions(ctx android.ModuleContext) {
j.maybeStrippedDexJarFile = dexOutputFile
ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"),
j.Stem()+".jar", dexOutputFile)
if j.IsForPlatform() {
ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"),
j.Stem()+".jar", dexOutputFile)
}
}
func (j *DexImport) DexJarBuildPath() android.Path {