Add the rest of the Rust projects to the build tool #53
8
build.sh
8
build.sh
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue