Add SourceProvider modules which provides a base interface for more complex code generation usecases such as bindgen. Also adds the rust_bindgen module type which calls bindgen to generate Rust FFI bindings to C. Bug: 159064919 Test: Local test module generates bindings. Test: New Soong tests pass. Change-Id: Ie31467bbbe423497666ad837cf5fe1acd1e76bd8
40 lines
853 B
Plaintext
40 lines
853 B
Plaintext
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",
|
|
"rust.go",
|
|
"source_provider.go",
|
|
"test.go",
|
|
"testing.go",
|
|
],
|
|
testSrcs: [
|
|
"binary_test.go",
|
|
"bindgen_test.go",
|
|
"clippy_test.go",
|
|
"compiler_test.go",
|
|
"coverage_test.go",
|
|
"library_test.go",
|
|
"project_json_test.go",
|
|
"rust_test.go",
|
|
"test_test.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|