Support AllowMissingDependencies for apex dependencies
Use android.OutputFileForModule instead of cc.Module.OutputFile, which will already handle the AllowMissingDependencies case. Bug: 250918230 Test: lunch aosp_riscv64-userdebug && m ALLOW_MISSING_DEPENDENCIES=true nothing Change-Id: I605ae9afe06ac450adec1d2a856e529e45ed5cb5
This commit is contained in:
parent
725eac60a2
commit
1d48715961
1 changed files with 4 additions and 4 deletions
|
@ -1564,7 +1564,7 @@ func apexFileForNativeLibrary(ctx android.BaseModuleContext, ccMod *cc.Module, h
|
|||
dirInApex = filepath.Join(dirInApex, "bionic")
|
||||
}
|
||||
|
||||
fileToCopy := ccMod.OutputFile().Path()
|
||||
fileToCopy := android.OutputFileForModule(ctx, ccMod, "")
|
||||
androidMkModuleName := ccMod.BaseModuleName() + ccMod.Properties.SubName
|
||||
return newApexFile(ctx, fileToCopy, androidMkModuleName, dirInApex, nativeSharedLib, ccMod)
|
||||
}
|
||||
|
@ -1575,7 +1575,7 @@ func apexFileForExecutable(ctx android.BaseModuleContext, cc *cc.Module) apexFil
|
|||
dirInApex = filepath.Join(dirInApex, cc.Target().NativeBridgeRelativePath)
|
||||
}
|
||||
dirInApex = filepath.Join(dirInApex, cc.RelativeInstallPath())
|
||||
fileToCopy := cc.OutputFile().Path()
|
||||
fileToCopy := android.OutputFileForModule(ctx, cc, "")
|
||||
androidMkModuleName := cc.BaseModuleName() + cc.Properties.SubName
|
||||
af := newApexFile(ctx, fileToCopy, androidMkModuleName, dirInApex, nativeExecutable, cc)
|
||||
af.symlinks = cc.Symlinks()
|
||||
|
@ -1588,7 +1588,7 @@ func apexFileForRustExecutable(ctx android.BaseModuleContext, rustm *rust.Module
|
|||
if rustm.Target().NativeBridge == android.NativeBridgeEnabled {
|
||||
dirInApex = filepath.Join(dirInApex, rustm.Target().NativeBridgeRelativePath)
|
||||
}
|
||||
fileToCopy := rustm.OutputFile().Path()
|
||||
fileToCopy := android.OutputFileForModule(ctx, rustm, "")
|
||||
androidMkModuleName := rustm.BaseModuleName() + rustm.Properties.SubName
|
||||
af := newApexFile(ctx, fileToCopy, androidMkModuleName, dirInApex, nativeExecutable, rustm)
|
||||
return af
|
||||
|
@ -1607,7 +1607,7 @@ func apexFileForRustLibrary(ctx android.BaseModuleContext, rustm *rust.Module) a
|
|||
if rustm.Target().NativeBridge == android.NativeBridgeEnabled {
|
||||
dirInApex = filepath.Join(dirInApex, rustm.Target().NativeBridgeRelativePath)
|
||||
}
|
||||
fileToCopy := rustm.OutputFile().Path()
|
||||
fileToCopy := android.OutputFileForModule(ctx, rustm, "")
|
||||
androidMkModuleName := rustm.BaseModuleName() + rustm.Properties.SubName
|
||||
return newApexFile(ctx, fileToCopy, androidMkModuleName, dirInApex, nativeSharedLib, rustm)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue