2020-12-31 15:28:03 +00:00
|
|
|
[tasks.gen-c-bindings]
|
|
|
|
install_crate = "cbindgen"
|
|
|
|
command = "cbindgen"
|
|
|
|
args = ["-c", "cbindgen.toml", "-o", "target/release/tts-rs.h"]
|
|
|
|
|
2020-12-30 18:28:07 +00:00
|
|
|
[tasks.build-android-example]
|
|
|
|
script = [
|
|
|
|
"cd examples/android",
|
|
|
|
"./gradlew assembleDebug",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tasks.run-android-example]
|
2020-12-30 17:37:46 +00:00
|
|
|
script = [
|
|
|
|
"cd examples/android",
|
|
|
|
"./gradlew runDebug",
|
|
|
|
]
|
|
|
|
|
2020-12-28 11:39:20 +00:00
|
|
|
[tasks.log-android]
|
|
|
|
command = "adb"
|
2020-12-31 15:28:03 +00:00
|
|
|
args = ["logcat", "RustStdoutStderr:D", "*:S"]
|
2021-03-16 22:33:01 +00:00
|
|
|
|
|
|
|
[tasks.install-trunk]
|
|
|
|
install_crate = { crate_name = "trunk", binary = "trunk", test_arg = "--help" }
|
|
|
|
|
|
|
|
[tasks.install-wasm-bindgen-cli]
|
|
|
|
install_crate = { crate_name = "wasm-bindgen-cli", binary = "wasm-bindgen", test_arg = "--help" }
|
|
|
|
|
2021-04-03 16:49:44 +00:00
|
|
|
[tasks.build-web-example]
|
|
|
|
dependencies = ["install-trunk", "install-wasm-bindgen-cli"]
|
|
|
|
cwd = "examples/web"
|
|
|
|
command = "trunk"
|
|
|
|
args = ["build"]
|
|
|
|
|
2021-03-16 22:33:01 +00:00
|
|
|
[tasks.run-web-example]
|
|
|
|
dependencies = ["install-trunk", "install-wasm-bindgen-cli"]
|
|
|
|
cwd = "examples/web"
|
|
|
|
command = "trunk"
|
2021-09-28 08:33:58 +00:00
|
|
|
args = ["serve"]
|