Propagate vendor_available property through to sdk snapshot

Test: m nothing
Change-Id: I68dcba111d290ae8a84c2bc023e1a4e0eaa43408
This commit is contained in:
Paul Duffin 2020-08-13 19:45:31 +01:00
parent 3f98d148df
commit d1edbd4eed
2 changed files with 7 additions and 0 deletions

View file

@ -119,6 +119,10 @@ func (mt *librarySdkMemberType) AddPrebuiltModule(ctx android.SdkMemberContext,
ccModule := member.Variants()[0].(*Module)
if proptools.Bool(ccModule.VendorProperties.Vendor_available) {
pbm.AddProperty("vendor_available", true)
}
sdkVersion := ccModule.SdkVersion()
if sdkVersion != "" {
pbm.AddProperty("sdk_version", sdkVersion)

View file

@ -1672,6 +1672,7 @@ func TestSnapshotWithCcLibrary(t *testing.T) {
],
export_include_dirs: ["include"],
stl: "none",
vendor_available: true,
}
`)
@ -1683,6 +1684,7 @@ cc_prebuilt_library {
name: "myexports_mynativelib@current",
sdk_member_name: "mynativelib",
installable: false,
vendor_available: true,
stl: "none",
compile_multilib: "both",
export_include_dirs: ["include/include"],
@ -1709,6 +1711,7 @@ cc_prebuilt_library {
cc_prebuilt_library {
name: "mynativelib",
prefer: false,
vendor_available: true,
stl: "none",
compile_multilib: "both",
export_include_dirs: ["include/include"],