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_libs=true
;;
--release)
export CMAKE_BUILD_TYPE=release
;;
esac
done
@ -87,10 +90,12 @@ function c3tool() {
case "$cmd" in
b|build)
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"
fi
printf "evn: - CMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE\n\n"
# cmake
if [[ ! -f "Makefile" ]]; then
exec_str="cmake .. -G \"MinGW Makefiles\"" && eval $exec_str
@ -147,7 +152,7 @@ function c3tool() {
echo "[Err] Invalid cmd: $cmd"
echo
echo "Usage:"
echo " - c3tool build|b [-r -l -f -a]"
echo " - c3tool build|b [-r -l -f -a --release]"
echo " - c3tool clean|c"
return 1
esac