Merge "Disable TARGET_VNDK_USE_CORE_VARIANT if VNDK is deprecated" into main

This commit is contained in:
Kiyoung Kim 2023-10-09 05:31:12 +00:00 committed by Gerrit Code Review
commit f161d653cf
2 changed files with 2 additions and 1 deletions

View file

@ -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 {

View file

@ -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"})