Merge "Disable TARGET_VNDK_USE_CORE_VARIANT if VNDK is deprecated" into main am: f161d653cf am: 22508c4eb2 am: 0ccd34b149 am: c90533a119

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2777368

Change-Id: Ie00278df5cb6aa45e4c13b5818407ad60ae1dd30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Kiyoung Kim 2023-10-09 08:07:33 +00:00 committed by Automerger Merge Worker
commit c2ef241726
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"})