2021-12-09 14:25:28 +01:00
|
|
|
[env.production]
|
|
|
|
RELEASE_FLAG = "--release"
|
|
|
|
|
|
|
|
[tasks.default]
|
|
|
|
alias = "all"
|
|
|
|
|
|
|
|
[tasks.all]
|
|
|
|
dependencies = ["objcopy"]
|
|
|
|
|
|
|
|
[tasks.clean]
|
|
|
|
command = "cargo"
|
|
|
|
args = ["clean"]
|
|
|
|
|
|
|
|
[tasks.build-1]
|
|
|
|
command = "cargo"
|
|
|
|
args = ["build", "@@remove-empty(RELEASE_FLAG)"]
|
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
command = "cargo"
|
|
|
|
args = ["build"]
|
|
|
|
|
|
|
|
[tasks.objcopy]
|
|
|
|
command = "cargo"
|
2024-01-13 11:51:44 +01:00
|
|
|
args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--", "-O binary", "--strip-all"]
|
2021-12-09 14:25:28 +01:00
|
|
|
dependencies = ["build-1"]
|
|
|
|
install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }
|