FFI::: Add gen-c-bindings cargo-make target

This currently always saves the bindings to target/release.
This commit is contained in:
mcb2003 2020-12-31 15:28:03 +00:00
parent af55101824
commit 078cf83a13
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
[tasks.gen-c-bindings]
install_crate = "cbindgen"
command = "cbindgen"
args = ["-c", "cbindgen.toml", "-o", "target/release/tts-rs.h"]
[tasks.build-android-example]
script = [
"cd examples/android",
@ -12,4 +17,4 @@ script = [
[tasks.log-android]
command = "adb"
args = ["logcat", "RustStdoutStderr:D", "*:S"]
args = ["logcat", "RustStdoutStderr:D", "*:S"]