2013-04-09 13:47:12 +08:00
How to Use bindings-generator
2013-01-06 18:31:35 +08:00
==================
2013-01-06 18:24:02 +08:00
2013-07-29 08:33:10 +08:00
On Windows (Not available from 3.0-pre-alpha0, the reason is that Clang3.3 can't work perfectly on windows, therefore, disable windows support temporary.):
2013-01-06 18:31:35 +08:00
------------
2013-01-06 18:24:02 +08:00
2013-03-17 14:07:41 +08:00
* Make sure that you have installed `android-ndk-r8d` or higher version.
2013-01-06 18:24:02 +08:00
* Download python2.7.3 from (http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi).
2013-01-06 18:31:35 +08:00
* Add the installed path of python (e.g. C:\Python27) to windows environment variable named 'PATH'.
2013-01-06 18:24:02 +08:00
* 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"
2013-03-17 14:07:41 +08:00
* Modify environment variables (`PYTHON_ROOT` and `NDK_ROOT`) in `genbindings-win32.bat`.
2013-01-06 18:24:02 +08:00
* Go to "cocos2d-x/tools/tojs" folder, and run "genbindings-win32.bat". The generated codes will be under "cocos2d-x\scripting\javascript\bindings\generated".
2013-01-06 18:31:35 +08:00
On MAC:
----------
2013-01-06 18:24:02 +08:00
2013-04-09 13:47:12 +08:00
* Please refer to https://github.com/cocos2d/bindings-generator/blob/master/README.md
2013-01-06 18:24:02 +08:00