588aae727b
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
44 lines
986 B
Text
44 lines
986 B
Text
bootstrap_go_package {
|
|
name: "soong-rust",
|
|
pkgPath: "android/soong/rust",
|
|
deps: [
|
|
"soong",
|
|
"soong-android",
|
|
"soong-cc",
|
|
"soong-rust-config",
|
|
],
|
|
srcs: [
|
|
"androidmk.go",
|
|
"binary.go",
|
|
"bindgen.go",
|
|
"builder.go",
|
|
"clippy.go",
|
|
"compiler.go",
|
|
"coverage.go",
|
|
"library.go",
|
|
"prebuilt.go",
|
|
"proc_macro.go",
|
|
"project_json.go",
|
|
"protobuf.go",
|
|
"rust.go",
|
|
"strip.go",
|
|
"source_provider.go",
|
|
"test.go",
|
|
"testing.go",
|
|
],
|
|
testSrcs: [
|
|
"binary_test.go",
|
|
"bindgen_test.go",
|
|
"builder_test.go",
|
|
"clippy_test.go",
|
|
"compiler_test.go",
|
|
"coverage_test.go",
|
|
"library_test.go",
|
|
"project_json_test.go",
|
|
"protobuf_test.go",
|
|
"rust_test.go",
|
|
"source_provider_test.go",
|
|
"test_test.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|