dex_import that isn't available for platform isn't installed
This change fixes a bug that dex_import module is always installed to
the platform even when the module is not available to the platform.
Exempt-From-Owner-Approval: cherry-pick from AOSP
Bug: 158284983
Test: OUT_DIR=/tmp/ndk build/soong/scripts/build-ndk-prebuilts.sh
Merged-In: I85570506e700be59ee63e4f1d7902a40e36df39c
(cherry picked from commit afd3d11a79
)
Change-Id: I85570506e700be59ee63e4f1d7902a40e36df39c
This commit is contained in:
@@ -2753,8 +2753,10 @@ func (j *DexImport) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||||||
|
|
||||||
j.maybeStrippedDexJarFile = dexOutputFile
|
j.maybeStrippedDexJarFile = dexOutputFile
|
||||||
|
|
||||||
ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"),
|
if j.IsForPlatform() {
|
||||||
j.Stem()+".jar", dexOutputFile)
|
ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"),
|
||||||
|
j.Stem()+".jar", dexOutputFile)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (j *DexImport) DexJarBuildPath() android.Path {
|
func (j *DexImport) DexJarBuildPath() android.Path {
|
||||||
|
Reference in New Issue
Block a user