test_for is available for all cc_* module types
Sometimes, the ordinary cc_library_* modules need test_for property when they are part of a bigger cc_test. Instead of propagating the test_for property from cc_test to its dependencies, this change requires the very dependency which needs access to the private part of an APEX to explicitly have the test_for property. Bug: 161575591 Test: m Change-Id: Ie1ffe9a60cd2ab02d41bbe5a98225a40392470f6
This commit is contained in:
@@ -29,6 +29,7 @@ func RegisterRequiredBuildComponentsForTest(ctx android.RegistrationContext) {
|
||||
|
||||
ctx.RegisterModuleType("toolchain_library", ToolchainLibraryFactory)
|
||||
ctx.RegisterModuleType("llndk_library", LlndkLibraryFactory)
|
||||
ctx.RegisterModuleType("cc_benchmark", BenchmarkFactory)
|
||||
ctx.RegisterModuleType("cc_object", ObjectFactory)
|
||||
ctx.RegisterModuleType("cc_genrule", genRuleFactory)
|
||||
ctx.RegisterModuleType("ndk_prebuilt_shared_stl", NdkPrebuiltSharedStlFactory)
|
||||
@@ -437,6 +438,13 @@ func GatherRequiredDepsForTest(oses ...android.OsType) string {
|
||||
ndk_prebuilt_shared_stl {
|
||||
name: "ndk_libc++_shared",
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libgoogle-benchmark",
|
||||
sdk_version: "current",
|
||||
stl: "none",
|
||||
system_shared_libs: [],
|
||||
}
|
||||
`
|
||||
|
||||
supportLinuxBionic := false
|
||||
|
Reference in New Issue
Block a user