Enable vndk-ext for product variants

To build vndk-ext for product variants use `vndk.extends` property
with `product_specific: true` as for the vndk-ext for vendor
variants. For example:
cc_library {
    name: "libvndk_ext_product",
    product_specific: true,
    vndk: {
        enabled: true,
        extends: "libvndk",
    },
}

It will install the vndk-ext libs for product variants in
product/lib[64]/vndk/

Test: m nothing
Bug: 147778025
Change-Id: If1ee5be93c579abad302f44f18e6316f27e70019
This commit is contained in:
Justin Yun
2020-02-28 15:07:59 +09:00
parent 49b445cace
commit 0ecf0b223f
3 changed files with 210 additions and 38 deletions

View File

@@ -102,6 +102,7 @@ func createTrebleRules() []Rule {
In("vendor", "device").
With("vndk.enabled", "true").
Without("vendor", "true").
Without("product_specific", "true").
Because("the VNDK can never contain a library that is device dependent."),
NeverAllow().
With("vndk.enabled", "true").