axmol/plugin/protocols/proj.android/build_native.sh

22 lines
453 B
Bash
Raw Normal View History

2013-04-07 16:58:26 +08:00
# set params
PLUGIN_ANDROID_ROOT=$(cd "$(dirname "$0")"; pwd)
if [ ! "${PLUGIN_ROOT}" ]; then
PLUGIN_ROOT="$PLUGIN_ANDROID_ROOT"/../..
fi
${PLUGIN_ROOT}/tools/toolsForPublish/checkEnvironment.sh
source ${PLUGIN_ROOT}/tools/toolsForPublish/environment.sh
# build
"$ANDROID_NDK_ROOT"/ndk-build -C "$PLUGIN_ANDROID_ROOT"
echo
if [ "0" != "$?" ]; then
echo "Build error occoured!!!"
exit 1
fi
echo
echo "Native build action success."
exit 0