Merge changes from topic "fix-vndk-core-variant"
am: 61eb8aaea4
Change-Id: If9b5bc238965c0adf4df9b51932025076bb37396
This commit is contained in:
commit
d178df9c20
|
@ -1176,7 +1176,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
ctx.PropertyErrorf("apps", "%q is not an android_app module", depName)
|
ctx.PropertyErrorf("apps", "%q is not an android_app module", depName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if !a.vndkApex {
|
||||||
// indirect dependencies
|
// indirect dependencies
|
||||||
if am, ok := child.(android.ApexModule); ok {
|
if am, ok := child.(android.ApexModule); ok {
|
||||||
// We cannot use a switch statement on `depTag` here as the checked
|
// We cannot use a switch statement on `depTag` here as the checked
|
||||||
|
|
|
@ -93,6 +93,11 @@ func (c *Module) AndroidMk() android.AndroidMkData {
|
||||||
fmt.Fprintln(w, "LOCAL_USE_VNDK := true")
|
fmt.Fprintln(w, "LOCAL_USE_VNDK := true")
|
||||||
if c.IsVndk() && !c.static() {
|
if c.IsVndk() && !c.static() {
|
||||||
fmt.Fprintln(w, "LOCAL_SOONG_VNDK_VERSION := "+c.vndkVersion())
|
fmt.Fprintln(w, "LOCAL_SOONG_VNDK_VERSION := "+c.vndkVersion())
|
||||||
|
// VNDK libraries available to vendor are not installed because
|
||||||
|
// they are packaged in VNDK APEX and installed by APEX packages (apex/apex.go)
|
||||||
|
if !c.isVndkExt() {
|
||||||
|
fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE := true")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -337,6 +337,10 @@ func IsForVndkApex(mctx android.BottomUpMutatorContext, m *Module) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !mctx.Device() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if m.Target().NativeBridge == android.NativeBridgeEnabled {
|
if m.Target().NativeBridge == android.NativeBridgeEnabled {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -350,8 +354,7 @@ func IsForVndkApex(mctx android.BottomUpMutatorContext, m *Module) bool {
|
||||||
|
|
||||||
if lib, ok := m.linker.(libraryInterface); ok {
|
if lib, ok := m.linker.(libraryInterface); ok {
|
||||||
useCoreVariant := m.vndkVersion() == mctx.DeviceConfig().PlatformVndkVersion() &&
|
useCoreVariant := m.vndkVersion() == mctx.DeviceConfig().PlatformVndkVersion() &&
|
||||||
mctx.DeviceConfig().VndkUseCoreVariant() &&
|
mctx.DeviceConfig().VndkUseCoreVariant() && !m.MustUseVendorVariant()
|
||||||
!inList(m.BaseModuleName(), config.VndkMustUseVendorVariantList)
|
|
||||||
return lib.shared() && m.UseVndk() && m.IsVndk() && !m.isVndkExt() && !useCoreVariant
|
return lib.shared() && m.UseVndk() && m.IsVndk() && !m.isVndkExt() && !useCoreVariant
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue