This commit is contained in:
xxoommd 2025-05-06 11:53:57 +08:00
parent d7d36f793a
commit 734bb0fcb1

View File

@ -80,6 +80,9 @@ function c3tool() {
update_res=true update_res=true
update_libs=true update_libs=true
;; ;;
--release)
export CMAKE_BUILD_TYPE=release
;;
esac esac
done done
@ -87,10 +90,12 @@ function c3tool() {
case "$cmd" in case "$cmd" in
b|build) b|build)
if $force; then if $force; then
printf "[BUILD] 清理make文件:" && rm -rf CMakeCache.txt CMakeFiles Makefile cmake_install.cmake compile_commands.json augustus* && \ printf "[BUILD] 清理make文件:" && rm -rf CMakeCache.txt CMakeFiles Makefile cmake_install.cmake compile_commands.json augustus* .cmake && \
echo "Done" echo "Done"
fi fi
printf "evn: - CMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE\n\n"
# cmake # cmake
if [[ ! -f "Makefile" ]]; then if [[ ! -f "Makefile" ]]; then
exec_str="cmake .. -G \"MinGW Makefiles\"" && eval $exec_str exec_str="cmake .. -G \"MinGW Makefiles\"" && eval $exec_str
@ -147,7 +152,7 @@ function c3tool() {
echo "[Err] Invalid cmd: $cmd" echo "[Err] Invalid cmd: $cmd"
echo echo
echo "Usage:" echo "Usage:"
echo " - c3tool build|b [-r -l -f -a]" echo " - c3tool build|b [-r -l -f -a --release]"
echo " - c3tool clean|c" echo " - c3tool clean|c"
return 1 return 1
esac esac