mirror of https://github.com/axmolengine/axmol.git
Update the JS Binding tools for new directory structure.
This commit is contained in:
parent
e0c60b87f7
commit
5f986064fb
|
@ -13,7 +13,7 @@ android_flags = -D_SIZE_T_DEFINED_
|
|||
clang_headers = -I%(clangllvmdir)s/lib/clang/3.1/include
|
||||
clang_flags = -nostdinc -x c++
|
||||
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/alipay/include
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/plugins/alipay/include
|
||||
|
||||
cocos_flags = -DANDROID
|
||||
|
||||
|
@ -23,7 +23,7 @@ cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
|
|||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(pluginxdir)s/alipay/include/IAPAlipay.h
|
||||
headers = %(pluginxdir)s/plugins/alipay/include/IAPAlipay.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^CCMenu*$".
|
||||
|
|
|
@ -13,7 +13,7 @@ android_flags = -D_SIZE_T_DEFINED_
|
|||
clang_headers = -I%(clangllvmdir)s/lib/clang/3.1/include
|
||||
clang_flags = -nostdinc -x c++
|
||||
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/flurry/include
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/plugins/flurry/include
|
||||
|
||||
cocos_flags = -DANDROID
|
||||
|
||||
|
@ -23,7 +23,7 @@ cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
|
|||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(pluginxdir)s/flurry/include/AnalyticsFlurry.h
|
||||
headers = %(pluginxdir)s/plugins/flurry/include/AnalyticsFlurry.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^CCMenu*$".
|
||||
|
|
|
@ -13,7 +13,7 @@ android_flags = -D_SIZE_T_DEFINED_
|
|||
clang_headers = -I%(clangllvmdir)s/lib/clang/3.1/include
|
||||
clang_flags = -nostdinc -x c++
|
||||
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/nd91/include
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/plugins/nd91/include
|
||||
|
||||
cocos_flags = -DANDROID
|
||||
|
||||
|
@ -23,7 +23,7 @@ cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
|
|||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(pluginxdir)s/nd91/include/IAPNd91.h
|
||||
headers = %(pluginxdir)s/plugins/nd91/include/IAPNd91.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^CCMenu*$".
|
||||
|
|
|
@ -13,7 +13,7 @@ android_flags = -D_SIZE_T_DEFINED_
|
|||
clang_headers = -I%(clangllvmdir)s/lib/clang/3.1/include
|
||||
clang_flags = -nostdinc -x c++
|
||||
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/umeng/include
|
||||
cocos_headers = -I%(pluginxdir)s/protocols/include -I%(pluginxdir)s/plugins/umeng/include
|
||||
|
||||
cocos_flags = -DANDROID
|
||||
|
||||
|
@ -23,7 +23,7 @@ cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
|
|||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(pluginxdir)s/umeng/include/AnalyticsUmeng.h
|
||||
headers = %(pluginxdir)s/plugins/umeng/include/AnalyticsUmeng.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^CCMenu*$".
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
PLUGIN_NAME=("chinamobile" "chinatelecom" "chinaunicom" "punchbox" "alipay" "flurry" "nd91" "umeng" "chinaunicom_online" "chinatelecom_online")
|
||||
PLUGIN_NAME=("alipay" "flurry" "nd91" "umeng")
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
|
@ -37,7 +37,7 @@ check_return_value "cocos2dx_others"
|
|||
for i in "${PLUGIN_NAME[@]}"
|
||||
do
|
||||
echo $i
|
||||
./genbindings.sh $i
|
||||
./genbindings.sh $i "plugins/"
|
||||
check_return_value $i
|
||||
done
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ if [ -z $1 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
SUB_DIR="$2"
|
||||
PLUGIN_NAME="$1"
|
||||
INI_NAME="jsb_$PLUGIN_NAME.ini"
|
||||
OUTPUT_FILENAME="jsb_pluginx_"$PLUGIN_NAME"_auto"
|
||||
|
@ -97,7 +98,7 @@ mv $CXX_GENERATOR_ROOT/targets/spidermonkey/conversions.yaml $CXX_GENERATOR_ROOT
|
|||
cp conversions.yaml $CXX_GENERATOR_ROOT/targets/spidermonkey
|
||||
|
||||
LD_LIBRARY_PATH=${CLANG_ROOT}/lib
|
||||
$PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${PLUGINX_ROOT}/$PLUGIN_NAME/$INI_NAME -s $PLUGIN_NAME -o $PLUGINX_ROOT/jsbindings/auto -n $OUTPUT_FILENAME
|
||||
$PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${PLUGINX_ROOT}/${SUB_DIR}$PLUGIN_NAME/$INI_NAME -s $PLUGIN_NAME -o $PLUGINX_ROOT/jsbindings/auto -n $OUTPUT_FILENAME
|
||||
|
||||
mv $CXX_GENERATOR_ROOT/targets/spidermonkey/conversions.yaml.backup $CXX_GENERATOR_ROOT/targets/spidermonkey/conversions.yaml
|
||||
|
||||
|
|
Loading…
Reference in New Issue