axmol/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh

25 lines
467 B
Bash
Raw Normal View History

2012-09-25 07:16:14 +08:00
#!/bin/bash
# Generate JS bindings for Cocos2D-X
# ... using Android NDK system headers
# Environment variables required
# * $PYTHON_BIN
# * $CLANG_ROOT
# * $NDK_ROOT
# * $COCOS2DX_ROOT
compileresult=0
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
COCOS2DX_ROOT="$DIR"/../../../../ /bin/bash ../../../tojs/genbindings.sh
compileresult=$[$compileresult+$?]
# return the compileresult.
if [ $compileresult != 0 ]; then
exit 1
else
exit 0
fi