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

13 lines
255 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 )"
2015-03-10 14:40:04 +08:00
COCOS2DX_ROOT="$DIR"/../../..
2015-03-03 16:36:42 +08:00
cd ${COCOS2DX_ROOT}
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