Merge "Disable TARGET_VNDK_USE_CORE_VARIANT if VNDK is deprecated" into main am: f161d653cf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2777368 Change-Id: I68dcc7fb457744c966b2f173d8e5c62d91eb9624 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
22508c4eb2
2 changed files with 2 additions and 1 deletions
|
@ -1451,7 +1451,7 @@ func (c *deviceConfig) ExtraVndkVersions() []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *deviceConfig) VndkUseCoreVariant() bool {
|
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 {
|
func (c *deviceConfig) SystemSdkVersions() []string {
|
||||||
|
|
|
@ -677,6 +677,7 @@ func TestVndkUsingCoreVariant(t *testing.T) {
|
||||||
config.TestProductVariables.DeviceVndkVersion = StringPtr("current")
|
config.TestProductVariables.DeviceVndkVersion = StringPtr("current")
|
||||||
config.TestProductVariables.Platform_vndk_version = StringPtr("29")
|
config.TestProductVariables.Platform_vndk_version = StringPtr("29")
|
||||||
config.TestProductVariables.VndkUseCoreVariant = BoolPtr(true)
|
config.TestProductVariables.VndkUseCoreVariant = BoolPtr(true)
|
||||||
|
config.TestProductVariables.KeepVndk = BoolPtr(true)
|
||||||
|
|
||||||
setVndkMustUseVendorVariantListForTest(config, []string{"libvndk"})
|
setVndkMustUseVendorVariantListForTest(config, []string{"libvndk"})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue