Add simple bp2build converter for java_test_host

Bug:281551424

Test: java_test_host_conversion_test.go and presubmits
Change-Id: I43ed26df0bacd63ef402de4d9733d19604005c35
This commit is contained in:
Zi Wang
2023-05-23 15:18:33 -07:00
parent 678e680a75
commit 65b36729c3
4 changed files with 236 additions and 8 deletions

View File

@@ -2188,5 +2188,9 @@ func (j *Module) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
if binary, ok := ctx.Module().(*Binary); ok {
javaBinaryHostBp2Build(ctx, binary)
}
case "java_test_host":
if testHost, ok := ctx.Module().(*TestHost); ok {
javaTestHostBp2Build(ctx, testHost)
}
}
}