diff options
author | 2020-08-04 17:46:22 +0000 | |
---|---|---|
committer | 2020-08-04 17:46:22 +0000 | |
commit | 89e4882d3764dc5c749a630b22381d9ead761500 (patch) | |
tree | 8d36850db208a3215e70376b338fbce8c959a960 /rust/bindgen_test.go | |
parent | 9b7b8f169a069bd9011fb7a88174044d6c845760 (diff) | |
parent | 26ecd6c5974fcd3ec09792394e7b9cdf32f5f64f (diff) |
Merge "[rust] Add SourceProviders as crates support."
Diffstat (limited to 'rust/bindgen_test.go')
-rw-r--r-- | rust/bindgen_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rust/bindgen_test.go b/rust/bindgen_test.go index 2122ec12c..c42834843 100644 --- a/rust/bindgen_test.go +++ b/rust/bindgen_test.go @@ -24,8 +24,10 @@ func TestRustBindgen(t *testing.T) { rust_bindgen { name: "libbindgen", wrapper_src: "src/any.h", - stem: "bindings", - flags: ["--bindgen-flag"], + crate_name: "bindgen", + stem: "libbindgen", + source_stem: "bindings", + bindgen_flags: ["--bindgen-flag"], cflags: ["--clang-flag"], shared_libs: ["libfoo_shared"], static_libs: ["libfoo_static"], @@ -38,7 +40,6 @@ func TestRustBindgen(t *testing.T) { name: "libfoo_static", export_include_dirs: ["static_include"], } - `) libbindgen := ctx.ModuleForTests("libbindgen", "android_arm64_armv8-a").Output("bindings.rs") if !strings.Contains(libbindgen.Args["flags"], "--bindgen-flag") { |