2021-12-09 14:25:28 +01:00
|
|
|
[env.production]
|
|
|
|
RELEASE_FLAG = "--release"
|
|
|
|
|
|
|
|
[tasks.default]
|
|
|
|
alias = "all"
|
|
|
|
|
|
|
|
[tasks.all]
|
2024-01-27 20:44:10 +01:00
|
|
|
dependencies = ["build"]
|
2021-12-09 14:25:28 +01:00
|
|
|
|
|
|
|
[tasks.clean]
|
|
|
|
command = "cargo"
|
|
|
|
args = ["clean"]
|
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
command = "cargo"
|
2024-01-27 20:44:10 +01:00
|
|
|
args = ["build", "@@remove-empty(RELEASE_FLAG)"]
|
2021-12-09 14:25:28 +01:00
|
|
|
|
2024-01-30 13:56:39 +01:00
|
|
|
[tasks.example]
|
2021-12-09 14:25:28 +01:00
|
|
|
command = "cargo"
|
2024-01-30 13:56:39 +01:00
|
|
|
args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--example", "${@}", "--", "-O", "binary", "--strip-all", "${@}.kex"]
|
2024-03-21 16:07:27 +01:00
|
|
|
# install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }
|