apex.use_vndk_as_stable can't be used with min_sdk_version
For vendor apexes, use_vndk_as_stable: true means the apex is tied with the current VNDK version while min_sdk_version: N means the apex should work with N+ VNDK versions. Setting both properties together doesn't make sense. Bug: 274396342 Test: m nothing (soong tests) Change-Id: I00dcac43f95ce6a90b3f3273ae4611a300ea5028
This commit is contained in:
@@ -993,6 +993,9 @@ func (a *apexBundle) ApexInfoMutator(mctx android.TopDownMutatorContext) {
|
||||
if !useVndk {
|
||||
mctx.PropertyErrorf("use_vndk_as_stable", "not supported for system/system_ext APEXes")
|
||||
}
|
||||
if a.minSdkVersionValue(mctx) != "" {
|
||||
mctx.PropertyErrorf("use_vndk_as_stable", "not supported when min_sdk_version is set")
|
||||
}
|
||||
mctx.VisitDirectDepsWithTag(sharedLibTag, func(dep android.Module) {
|
||||
if c, ok := dep.(*cc.Module); ok && c.IsVndk() {
|
||||
mctx.PropertyErrorf("use_vndk_as_stable", "Trying to include a VNDK library(%s) while use_vndk_as_stable is true.", dep.Name())
|
||||
|
Reference in New Issue
Block a user