Add support for native bridge trait

Adds a native bridge trait that if required will cause a
cc_library_header module to generate a cc_prebuilt_library_headers with
native_bridge_supported: true. It will fail if the cc_library_header's
native bridge variant would produce native bridge specific properties,
distinct from the other architecture variants, in the generated
cc_prebuilt_library_headers.

Bug: 195754365
Test: m nothing
Change-Id: I282fbb9095de6c6af57cca4eb4260e2c6c2da8cc
This commit is contained in:
Paul Duffin
2019-11-19 19:44:10 +00:00
parent fefdb0bf0a
commit 93b750e2a0
5 changed files with 174 additions and 2 deletions

View File

@@ -33,6 +33,9 @@ var headersLibrarySdkMemberType = &librarySdkMemberType{
PropertyName: "native_header_libs",
SupportsSdk: true,
HostOsDependent: true,
Traits: []android.SdkMemberTrait{
nativeBridgeSdkTrait,
},
},
prebuiltModuleType: "cc_prebuilt_library_headers",
noOutputFiles: true,