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

14 lines
550 B
Bash
Raw Normal View History

2015-07-07 11:02:21 +08:00
#put xctool.sh into your PATH
tools/cocos2d-console/bin/cocos new -l $1
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# COCOS2DX_ROOT="$DIR"/../../..
# cd ${COCOS2DX_ROOT}
# python build/android-build.py -p 10 cpp-tests lua-tests js-tests
if [ $1 == "cpp" ];then
cocos compile -p linux -s MyCppGame -m release -j4 --compile-script 0
elif [ $1 == "lua" ];then
cocos compile -p linux -s MyLuaGame -m release -j4 --compile-script 0
elif [ $1 == "js" ];then
cocos compile -p linux -s MyJsGame -m release -j4 --compile-script 0
fi