Merge changes I957f3df8,I68986dcc am: cf6bf37d04
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1829372 Change-Id: Ifcf471f2746c1037b83c2a11b8f5120b86fd6cb2
This commit is contained in:
@@ -171,13 +171,15 @@ func (p *prebuiltCommon) initApexFilesForAndroidMk(ctx android.ModuleContext) {
|
||||
name := android.RemoveOptionalPrebuiltPrefix(ctx.OtherModuleName(child))
|
||||
if java.IsBootclasspathFragmentContentDepTag(tag) || tag == exportedJavaLibTag {
|
||||
// If the exported java module provides a dex jar path then add it to the list of apexFiles.
|
||||
path := child.(interface{ DexJarBuildPath() android.Path }).DexJarBuildPath()
|
||||
if path != nil {
|
||||
path := child.(interface {
|
||||
DexJarBuildPath() java.OptionalDexJarPath
|
||||
}).DexJarBuildPath()
|
||||
if path.IsSet() {
|
||||
af := apexFile{
|
||||
module: child,
|
||||
moduleDir: ctx.OtherModuleDir(child),
|
||||
androidMkModuleName: name,
|
||||
builtFile: path,
|
||||
builtFile: path.Path(),
|
||||
class: javaSharedLib,
|
||||
}
|
||||
if module, ok := child.(java.DexpreopterInterface); ok {
|
||||
@@ -624,10 +626,6 @@ func createDeapexerModuleIfNeeded(ctx android.TopDownMutatorContext, deapexerNam
|
||||
)
|
||||
}
|
||||
|
||||
func deapexerModuleName(baseModuleName string) string {
|
||||
return baseModuleName + ".deapexer"
|
||||
}
|
||||
|
||||
func apexSelectorModuleName(baseModuleName string) string {
|
||||
return baseModuleName + ".apex.selector"
|
||||
}
|
||||
|
Reference in New Issue
Block a user