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

13 lines
328 B
Bash
Raw Normal View History

2015-07-07 13:42:44 +08:00
#!/bin/bash
2021-05-18 16:40:30 +08:00
adxe_cmd=tools/console/bin/adxe
$adxe_cmd new -l $1
2015-07-07 11:21:32 +08:00
if [ $1 = "cpp" ];then
2015-07-07 13:42:44 +08:00
projectname="MyCppGame"
2015-07-07 11:21:32 +08:00
elif [ $1 = "lua" ];then
2015-07-07 13:42:44 +08:00
projectname="MyLuaGame"
2015-07-07 11:21:32 +08:00
elif [ $1 = "js" ];then
2015-07-07 13:42:44 +08:00
projectname="MyJSGame"
2015-07-07 11:02:21 +08:00
fi
2015-07-07 13:42:44 +08:00
2021-05-18 16:40:30 +08:00
$adxe_cmd compile -p android -s $projectname --android-studio -j4 --ndk-mode release --compile-script 0