Remove PlatformVndkVersion property
Platform VNDK version is no longer available based on VNDK deprecation. Remove all code using Platform VNDK version. Bug: 330100430 Test: AOSP CF build succeeded Change-Id: I7d0f7e23eff5d153346890f242a94b78bad6736b
This commit is contained in:
@@ -131,16 +131,6 @@ func (p *vndkPrebuiltLibraryDecorator) singleSourcePath(ctx ModuleContext) andro
|
||||
|
||||
func (p *vndkPrebuiltLibraryDecorator) link(ctx ModuleContext,
|
||||
flags Flags, deps PathDeps, objs Objects) android.Path {
|
||||
platformVndkVersion := ctx.DeviceConfig().PlatformVndkVersion()
|
||||
if platformVndkVersion != "" {
|
||||
platformVndkApiLevel := android.ApiLevelOrPanic(ctx, platformVndkVersion)
|
||||
if platformVndkApiLevel.LessThanOrEqualTo(android.ApiLevelOrPanic(ctx, p.Version())) {
|
||||
// This prebuilt VNDK module is not required for the current build
|
||||
ctx.Module().HideFromMake()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
if !p.MatchesWithDevice(ctx.DeviceConfig()) {
|
||||
ctx.Module().HideFromMake()
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user