mirror of https://github.com/axmolengine/axmol.git
29 lines
782 B
Bash
Executable File
29 lines
782 B
Bash
Executable File
#define plugins array
|
|
export ALL_PLUGINS=("flurry" "umeng" \
|
|
"alipay" "nd91" \
|
|
"admob" \
|
|
"twitter" "weibo")
|
|
|
|
# define the plugin root directory & publish target directory
|
|
export TARGET_DIR_NAME="publish"
|
|
if [ ! ${PLUGIN_ROOT} ]; then
|
|
pushd ../
|
|
export PLUGIN_ROOT=`pwd`
|
|
export TARGET_ROOT=${PLUGIN_ROOT}/${TARGET_DIR_NAME}
|
|
echo PLUGIN_ROOT = ${PLUGIN_ROOT}
|
|
echo TARGET_ROOT = ${TARGET_ROOT}
|
|
popd
|
|
fi
|
|
|
|
# get a string include all plugins name(separate with ':')
|
|
export PLUGINS_CAN_SELECT=""
|
|
PLUGIN_NUM=${#ALL_PLUGINS[@]}
|
|
for ((i=0; i<${PLUGIN_NUM}; i++))
|
|
do
|
|
plugin_name=${ALL_PLUGINS[$i]}
|
|
PLUGINS_CAN_SELECT=${PLUGINS_CAN_SELECT}${plugin_name}
|
|
if [ $i -ne $((${PLUGIN_NUM}-1)) ]; then
|
|
PLUGINS_CAN_SELECT=${PLUGINS_CAN_SELECT}":"
|
|
fi
|
|
done
|