3 Star 1 Fork 0

weiboad / aidt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cmake.sh 665 Bytes
一键复制 编辑 原始数据 按行查看 历史
nmred 提交于 2017-07-11 11:02 . modify cmake
#!/bin/bash
#{{{ options
echo "Start cmake configure....."
echo -e "\033[31m\033[05mCompile debug level [Debug(D)|Release(R)]: \033[0m\c"
read makelevel
case $makelevel in
Debug | D )
CMAKE_BUILD_TYPE="Debug";;
Release | R )
CMAKE_BUILD_TYPE="Release";;
*)
CMAKE_BUILD_TYPE="Debug";;
esac
# }}}
# 计算版本号
GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l`
BUILD_ID=`uname -n`"-"`date +%s`
CMD="cmake -H. -B_build -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DGIT_SHA1=$GIT_SHA1 -DGIT_DIRTY=$GIT_DIRTY -DBUILD_ID=$BUILD_ID -DSTATICCOMPILE=ON "
echo $CMD
eval $CMD
1
https://gitee.com/weiboad/aidt.git
git@gitee.com:weiboad/aidt.git
weiboad
aidt
aidt
master

搜索帮助