Add the rest of the Rust projects to the build tool #53
22
build.sh
22
build.sh
|
@ -2,7 +2,20 @@
|
||||||
|
|
||||||
set -euo pipefail
|
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() {
|
build_rust_targets() {
|
||||||
local CMD=$1
|
local CMD=$1
|
||||||
|
@ -23,8 +36,13 @@ if [ -z "${CMD-}" ]; then
|
||||||
CMD="release"
|
CMD="release"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${CMD}" == "clean" ]; then
|
||||||
|
cargo clean
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${TARGET}" == "all" ]; then
|
if [ "${TARGET}" == "all" ]; then
|
||||||
build_rust_targets $CMD $RUST_ALL_TARGETS
|
build_rust_targets $CMD ${RUST_ALL_TARGETS[*]}
|
||||||
else
|
else
|
||||||
build_rust_targets $CMD $TARGET
|
build_rust_targets $CMD $TARGET
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue