diff --git a/plugin/tools/tojs/README.mdown b/plugin/tools/tojs/README.mdown deleted file mode 100644 index 17403923cf..0000000000 --- a/plugin/tools/tojs/README.mdown +++ /dev/null @@ -1,21 +0,0 @@ -How to Use cxx-generator -================== - -On Windows: ------------- - -* Make sure that you have installed vs2010 or higher version. -* Download python2.7.3 from (http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi). -* Add the installed path of python (e.g. C:\Python27) to windows environment variable named 'PATH'. -* Download pyyaml from http://pyyaml.org/download/pyyaml/PyYAML-3.10.win32-py2.7.exe and install it. -* Download pyCheetah from https://raw.github.com/dumganhar/cocos2d-x/download/downloads/Cheetah.zip, unzip it to "C:\Python27\Lib\site-packages" -* There is a bug of redefine some base type(e.g. uint_16 in stdint.h file on windows. -So before you run the generating script, you should comment first line which contains "#include " in "cocos2d-x\external\chipmunk\include\chipmunk\chipmunk_types.h" -* Go to "cocos2d-x/tools/tojs" folder, and run "genbindings-win32.bat". The generated codes will be under "cocos2d-x\scripting\javascript\bindings\generated". - -On MAC: ----------- - -* Please refer to https://github.com/funkaster/cxx-generator/blob/master/README.md - - diff --git a/plugin/tools/tojs/genbindings-all.sh b/plugin/tools/tojs/genbindings-all.sh index 84f0374dc8..122c1a0fdd 100755 --- a/plugin/tools/tojs/genbindings-all.sh +++ b/plugin/tools/tojs/genbindings-all.sh @@ -5,7 +5,7 @@ PLUGIN_NAME=("alipay" "flurry" "nd91" "umeng") DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # ... use paths relative to current directory PLUGIN_ROOT="$DIR/../.." -CXX_GENERATOR_ROOT="$DIR/../../../tools/cxx-generator" +CXX_GENERATOR_ROOT="$DIR/../../../tools/bindings-generator" # Delete the output directory if [ -d $PLUGIN_ROOT/jsbindings/auto ]; then echo "Delete the output directory." diff --git a/plugin/tools/tojs/genbindings-cocos2dx-others.sh b/plugin/tools/tojs/genbindings-cocos2dx-others.sh index 9c49f6b670..afdac0054f 100755 --- a/plugin/tools/tojs/genbindings-cocos2dx-others.sh +++ b/plugin/tools/tojs/genbindings-cocos2dx-others.sh @@ -40,7 +40,7 @@ if [ -z "${PLUGINX_ROOT+aaa}" ]; then fi if [ -z "${CXX_GENERATOR_ROOT+aaa}" ]; then - CXX_GENERATOR_ROOT="$PLUGINX_ROOT/../tools/cxx-generator" + CXX_GENERATOR_ROOT="$PLUGINX_ROOT/../tools/bindings-generator" fi if [ -z "${TOJS_ROOT+aaa}" ]; then diff --git a/plugin/tools/tojs/genbindings.sh b/plugin/tools/tojs/genbindings.sh index fedb52e8cd..85414ff920 100755 --- a/plugin/tools/tojs/genbindings.sh +++ b/plugin/tools/tojs/genbindings.sh @@ -55,7 +55,7 @@ if [ -z "${PLUGINX_ROOT+aaa}" ]; then fi if [ -z "${CXX_GENERATOR_ROOT+aaa}" ]; then - CXX_GENERATOR_ROOT="$PLUGINX_ROOT/../tools/cxx-generator" + CXX_GENERATOR_ROOT="$PLUGINX_ROOT/../tools/bindings-generator" fi if [ -z "${TOJS_ROOT+aaa}" ]; then