platform_build_soong/sdk
Paul Duffin a0843f6a6f Differentiate between cc library and binary
The cc library and cc binary (and other cc module types) are all
instances of cc.Module. So, to differentiate between them and make
sure that only appropriate library instances can be added to
native_shared/static_libs this adds a special sdkMemberTypes field to
Module which if set specifies the SdkMemberTypes the module supports.
If it is not set then the module type cannot be used in the sdk at all.

Corrects an issue with one of the tests where a prebuilt cc
library was added to the sdk instead of a source cc library.

Adds a new test to ensure that cc_library_(shared|static)_host module
types work with the sdk as well and another test to ensure that
cc_library can be used as either.

Bug: 142918168
Test: m checkbuild
Change-Id: I359cdbdd15328ca571f276d2b6ce9a229ebb2c86
2019-12-20 15:45:17 +00:00
..
bp.go Add model to represent generated snapshot .bp file 2019-12-02 12:59:38 +00:00
cc_sdk_test.go Differentiate between cc library and binary 2019-12-20 15:45:17 +00:00
java_sdk_test.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00
sdk.go Decouple addition of new sdk member types from sdk code 2019-12-13 20:07:33 +00:00
sdk_test.go Ensure prebuilt modules have same visibility as source modules 2019-12-09 13:32:28 +00:00
testing.go Dedup cc library module type registration 2019-12-20 15:22:52 +00:00
update.go Decouple addition of new sdk member types from sdk code 2019-12-13 20:07:33 +00:00