mirror of https://github.com/axmolengine/axmol.git
14 lines
550 B
Bash
14 lines
550 B
Bash
|
#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
|