axmol/tools/jenkins-scripts/slave-scripts/tests/linux-build.sh

13 lines
250 B
Bash
Raw Normal View History

2015-03-03 16:36:42 +08:00
#put xctool.sh into your PATH
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2021-05-18 16:40:30 +08:00
ADXE_ROOT="$DIR"/../../../..
cd ${ADXE_ROOT}
2015-03-03 16:36:42 +08:00
mkdir linux-build
cd linux-build
cmake ..
2015-04-28 11:13:20 +08:00
if [ ! $? = 0 ]; then
echo "cmake generate error"
exit 1
fi
2015-03-03 16:36:42 +08:00
make -j4