Files
build_soong/rust/Android.bp
Ivan Lozano 4fef93c53f Add SourceProviders and a rust_bindgen module type
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
2020-07-20 13:40:14 -04:00

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"],
}