代码拉取完成,页面将自动刷新
同步操作将从 Tecorigin/Teco-AL 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#! /bin/bash
set -e
#set -x
# default build not build unittest
BUILD_TEST=OFF
# default build release type
CMAKE_BUILD_TYPE=Release
# default do not build with VERBOSE=1
BUILD_VERBOSE=OFF
usage () {
echo "USAGE: ./build.sh <options>"
echo
echo "OPTIONS:"
echo " -h, --help Print usage."
echo " --test {on/off} Build unittest(default not build unittest)."
echo " --debug Build debug type(default build release type)."
echo " --build_verbose Build with VERBOSE=1 and 1 thread(default with 32 threads)."
echo
}
while [ $# != 0 ]; do
case "$1" in
-h | --help)
usage
exit 0
;;
--test)
shift
case "$1" in
on)
BUILD_TEST=ON
shift
;;
off)
BUILD_TEST=OFF
shift
;;
*)
echo "-- Unknown options for --test ${1}, only support on or off, use -h or --help"
usage
exit -1
;;
esac
;;
--debug)
CMAKE_BUILD_TYPE=DEBUG
shift
;;
--build_verbose)
BUILD_VERBOSE=ON
shift
;;
*)
echo "-- Unknown options ${1}, use -h or --help"
usage
exit -1
;;
esac
done
if [[ ${TECO_READY_TO_BUILD} != "ON" ]]; then
echo "please source env.sh before build.sh."
exit -1
fi
# create build directory
if [[ -d build ]]; then
rm build/* -rf
elif [[ -a build ]]; then
rm build
mkdir build
else
mkdir build
fi
# build tecoal
pushd build
cmake \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DBUILD_TEST=${BUILD_TEST} \
..
if [ "${BUILD_VERBOSE}" == "ON" ]; then
make -j1 VERBOSE=1
else
make -j32
fi
popd
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。