Remove VNDK related code from Soong
As VNDK definition is fully removed from Android.bp, VNDK related code can be removed from Soong. This change removes VNDK related code except VNDK prebuilt which is required to build former versions of VNDK APEX with prebuilts. Bug: 330100430 Test: AOSP CF build succeeded Ignore-AOSP-First: Resolve Conflict Change-Id: Id9c8993343221c8464c97296bde0ff40b14b9b0b
This commit is contained in:
@@ -49,6 +49,8 @@ var (
|
||||
// },
|
||||
// }
|
||||
type vndkPrebuiltProperties struct {
|
||||
VndkProperties
|
||||
|
||||
// VNDK snapshot version.
|
||||
Version *string
|
||||
|
||||
@@ -268,3 +270,14 @@ func VndkPrebuiltSharedFactory() android.Module {
|
||||
func init() {
|
||||
android.RegisterModuleType("vndk_prebuilt_shared", VndkPrebuiltSharedFactory)
|
||||
}
|
||||
|
||||
func IsForVndkApex(mctx android.BottomUpMutatorContext, m *Module) bool {
|
||||
if !m.Enabled(mctx) {
|
||||
return true
|
||||
}
|
||||
|
||||
if p, ok := m.linker.(*vndkPrebuiltLibraryDecorator); ok {
|
||||
return p.MatchesWithDevice(mctx.DeviceConfig()) && Bool(p.properties.Vndk.Enabled)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user