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
2 changed files with 9 additions and 7 deletions
Showing only changes of commit 98fac30ed6 - Show all commits

View File

@ -34,7 +34,7 @@ if [ -z "${TARGET-}" ]; then
fi fi
if [ -z "${CMD-}" ]; then if [ -z "${CMD-}" ]; then
CMD="release" CMD="test release"
fi fi
if [ "${CMD}" == "clean" ]; then if [ "${CMD}" == "clean" ]; then
@ -42,8 +42,10 @@ if [ "${CMD}" == "clean" ]; then
exit 0 exit 0
fi fi
for cmd in $CMD; do
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
done

View File

@ -21,7 +21,7 @@ case $CMD in
$CARGO run $MODULE $PARAMS $CARGO run $MODULE $PARAMS
;; ;;
release) release)
$CARGO run --release $MODULE $PARAMS $CARGO build --release $MODULE $PARAMS
;; ;;
clean) clean)
$CARGO clean $MODULE $CARGO clean $MODULE