Add rust_protobuf module.

This adds a new SourceProvider module type to handle protobuf code
generation. See the new test for an example of how to call this.

Bug: 143953733
Test: New soong tests pass.
Test: Replacing genrules in crosvm with rust_protobuf modules.
Change-Id: Ie3117129cde37b8736bc18ee09bf5cde27c01c34
This commit is contained in:
Treehugger Robot
2020-08-21 10:01:58 +00:00
committed by Ivan Lozano
parent 682c9d7b25
commit 588aae727b
6 changed files with 164 additions and 3 deletions

View File

@@ -62,6 +62,7 @@ func testConfig(bp string) android.Config {
"foo.c": nil,
"src/bar.rs": nil,
"src/any.h": nil,
"buf.proto": nil,
"liby.so": nil,
"libz.so": nil,
}