Add bp2build converter for rust_ffi_static

Test: go test
Change-Id: Ibf0bb2687073f8650da4ca27c1f57e68a93025d4
This commit is contained in:
Vinh Tran
2023-10-17 16:28:04 -04:00
parent 786c44f9f3
commit 7515994523
4 changed files with 118 additions and 3 deletions

View File

@@ -1891,6 +1891,8 @@ func (m *Module) ConvertWithBp2build(ctx android.Bp2buildMutatorContext) {
binaryBp2build(ctx, m)
} else if ctx.ModuleType() == "rust_protobuf_host" || ctx.ModuleType() == "rust_protobuf" {
protoLibraryBp2build(ctx, m)
} else if ctx.ModuleType() == "rust_ffi_static" {
ffiStaticBp2build(ctx, m)
} else {
ctx.MarkBp2buildUnconvertible(bp2build_metrics_proto.UnconvertedReasonType_TYPE_UNSUPPORTED, "")
}