Merge "Disable TARGET_VNDK_USE_CORE_VARIANT if VNDK is deprecated" into main
This commit is contained in:
commit
f161d653cf
2 changed files with 2 additions and 1 deletions
|
@ -1451,7 +1451,7 @@ func (c *deviceConfig) ExtraVndkVersions() []string {
|
|||
}
|
||||
|
||||
func (c *deviceConfig) VndkUseCoreVariant() bool {
|
||||
return Bool(c.config.productVariables.VndkUseCoreVariant)
|
||||
return Bool(c.config.productVariables.VndkUseCoreVariant) && Bool(c.config.productVariables.KeepVndk)
|
||||
}
|
||||
|
||||
func (c *deviceConfig) SystemSdkVersions() []string {
|
||||
|
|
|
@ -677,6 +677,7 @@ func TestVndkUsingCoreVariant(t *testing.T) {
|
|||
config.TestProductVariables.DeviceVndkVersion = StringPtr("current")
|
||||
config.TestProductVariables.Platform_vndk_version = StringPtr("29")
|
||||
config.TestProductVariables.VndkUseCoreVariant = BoolPtr(true)
|
||||
config.TestProductVariables.KeepVndk = BoolPtr(true)
|
||||
|
||||
setVndkMustUseVendorVariantListForTest(config, []string{"libvndk"})
|
||||
|
||||
|
|
Loading…
Reference in a new issue