Loading cc/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ bootstrap_go_package { "soong-multitree", "soong-snapshot", "soong-sysprop-bp2build", "soong-testing", "soong-tradefed", ], srcs: [ Loading cc/cc.go +8 −3 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import ( "strconv" "strings" "android/soong/testing" "android/soong/ui/metrics/bp2build_metrics_proto" "github.com/google/blueprint" Loading Loading @@ -865,6 +866,7 @@ type Module struct { hod android.HostOrDeviceSupported multilib android.Multilib bazelable bool testModule bool // Allowable SdkMemberTypes of this module type. sdkMemberTypes []android.SdkMemberType Loading Loading @@ -2329,6 +2331,9 @@ func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) { } } } if c.testModule { ctx.SetProvider(testing.TestModuleProviderKey, testing.TestModuleProviderData{}) } c.maybeInstall(ctx, apexInfo) } Loading cc/fuzz.go +1 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ func fuzzMutatorDeps(mctx android.TopDownMutatorContext) { // your device, or $ANDROID_PRODUCT_OUT/data/fuzz in your build tree. func LibFuzzFactory() android.Module { module := NewFuzzer(android.HostAndDeviceSupported) module.testModule = true return module.Init() } Loading cc/test.go +3 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,7 @@ func init() { func TestFactory() android.Module { module := NewTest(android.HostAndDeviceSupported, true) module.bazelHandler = &ccTestBazelHandler{module: module} module.testModule = true return module.Init() } Loading @@ -158,12 +159,14 @@ func TestLibraryFactory() android.Module { // binary. func BenchmarkFactory() android.Module { module := NewBenchmark(android.HostAndDeviceSupported) module.testModule = true return module.Init() } // cc_test_host compiles a test host binary. func TestHostFactory() android.Module { module := NewTest(android.HostSupported, true) module.testModule = true return module.Init() } Loading rust/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ bootstrap_go_package { "soong-cc", "soong-rust-config", "soong-snapshot", "soong-testing", ], srcs: [ "afdo.go", Loading Loading
cc/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ bootstrap_go_package { "soong-multitree", "soong-snapshot", "soong-sysprop-bp2build", "soong-testing", "soong-tradefed", ], srcs: [ Loading
cc/cc.go +8 −3 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import ( "strconv" "strings" "android/soong/testing" "android/soong/ui/metrics/bp2build_metrics_proto" "github.com/google/blueprint" Loading Loading @@ -865,6 +866,7 @@ type Module struct { hod android.HostOrDeviceSupported multilib android.Multilib bazelable bool testModule bool // Allowable SdkMemberTypes of this module type. sdkMemberTypes []android.SdkMemberType Loading Loading @@ -2329,6 +2331,9 @@ func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) { } } } if c.testModule { ctx.SetProvider(testing.TestModuleProviderKey, testing.TestModuleProviderData{}) } c.maybeInstall(ctx, apexInfo) } Loading
cc/fuzz.go +1 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ func fuzzMutatorDeps(mctx android.TopDownMutatorContext) { // your device, or $ANDROID_PRODUCT_OUT/data/fuzz in your build tree. func LibFuzzFactory() android.Module { module := NewFuzzer(android.HostAndDeviceSupported) module.testModule = true return module.Init() } Loading
cc/test.go +3 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,7 @@ func init() { func TestFactory() android.Module { module := NewTest(android.HostAndDeviceSupported, true) module.bazelHandler = &ccTestBazelHandler{module: module} module.testModule = true return module.Init() } Loading @@ -158,12 +159,14 @@ func TestLibraryFactory() android.Module { // binary. func BenchmarkFactory() android.Module { module := NewBenchmark(android.HostAndDeviceSupported) module.testModule = true return module.Init() } // cc_test_host compiles a test host binary. func TestHostFactory() android.Module { module := NewTest(android.HostSupported, true) module.testModule = true return module.Init() } Loading
rust/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ bootstrap_go_package { "soong-cc", "soong-rust-config", "soong-snapshot", "soong-testing", ], srcs: [ "afdo.go", Loading