6a88443089
We don't have Rust VNDK support yet, but static linkage can be supported in the interim. This adds support for making rust_ffi_static libraries available to CC vendor modules. Since rust_ffi_static modules will link against rlibs, we allow rlib linkage into vendor as well, but only for the variants which use the rlib libstd. Bug: 172525289 Test: New Soong tests pass Test: Example vendor cc_binary links against rust_ffi_static module. Change-Id: Idf3aeb51e32293866f1ad965e329aa6b9e0bf2ef
46 lines
1 KiB
Text
46 lines
1 KiB
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",
|
|
"image.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",
|
|
"image_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"],
|
|
}
|