2012-09-25 07:16:14 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Generate JS bindings for Cocos2D-X
|
|
|
|
# ... using Android NDK system headers
|
|
|
|
|
2012-09-26 04:55:06 +08:00
|
|
|
# Dependencies (see ../../../tojs/genbindings.sh
|
|
|
|
# ... for the defaults used if the environment is not customized)
|
|
|
|
#
|
2012-09-25 07:16:14 +08:00
|
|
|
# * $PYTHON_BIN
|
|
|
|
# * $CLANG_ROOT
|
|
|
|
# * $NDK_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
|