Add the rest of the Rust projects to the build tool #53

Merged
savanni merged 13 commits from add-projects-to-build-tool into main 2023-08-07 22:42:23 +00:00
1 changed files with 20 additions and 2 deletions
Showing only changes of commit 43281c4dd3 - Show all commits

View File

@ -2,7 +2,20 @@
set -euo pipefail
RUST_ALL_TARGETS="dashboard ifc memorycache geo-types fluent-ergonomics cyberpunk-splash screenplay emseries coordinates flow sgf changeset"
RUST_ALL_TARGETS=(
"dashboard"
"ifc"
"memorycache"
"geo-types"
"fluent-ergonomics"
"cyberpunk-splash"
"screenplay"
"emseries"
"coordinates"
"flow"
"sgf"
"changeset"
)
build_rust_targets() {
local CMD=$1
@ -23,8 +36,13 @@ if [ -z "${CMD-}" ]; then
CMD="release"
fi
if [ "${CMD}" == "clean" ]; then
cargo clean
exit 0
fi
if [ "${TARGET}" == "all" ]; then
build_rust_targets $CMD $RUST_ALL_TARGETS
build_rust_targets $CMD ${RUST_ALL_TARGETS[*]}
else
build_rust_targets $CMD $TARGET
fi