mirror of
https://github.com/xxoommd/magic.git
synced 2025-05-22 13:12:45 +00:00
update
This commit is contained in:
parent
d7d36f793a
commit
734bb0fcb1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user