mirror of https://github.com/axmolengine/axmol.git
dd7bfd7b60
Conflicts: cocos2dx/CCDirector.h cocos2dx/keyboard_dispatcher/CCKeyboardDispatcher.h cocos2dx/keypad_dispatcher/CCKeypadDelegate.h cocos2dx/keypad_dispatcher/CCKeypadDispatcher.h cocos2dx/layers_scenes_transitions_nodes/CCLayer.h cocos2dx/menu_nodes/CCMenu.h cocos2dx/platform/CCAccelerometerDelegate.h cocos2dx/platform/android/CCAccelerometer.h cocos2dx/platform/ios/CCAccelerometer.h cocos2dx/platform/mac/CCAccelerometer.h cocos2dx/platform/win32/CCAccelerometer.h cocos2dx/script_support/CCScriptSupport.h cocos2dx/touch_dispatcher/CCTouchDelegateProtocol.h cocos2dx/touch_dispatcher/CCTouchDispatcher.h cocos2dx/touch_dispatcher/CCTouchHandler.h extensions/CocoStudio/Components/CCInputDelegate.h |
||
---|---|---|
.. | ||
README.mdown | ||
cocos2dx.ini | ||
cocos2dx_extension.ini | ||
genbindings.sh |
README.mdown
How to Use bindings-generator
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.):
- Make sure that you have installed
android-ndk-r8d
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"
- Modify environment variables (
PYTHON_ROOT
andNDK_ROOT
) ingenbindings-win32.bat
. - Go to "cocos2d-x/tools/tojs" folder, and run "genbindings-win32.bat". The generated codes will be under "cocos2d-x\scripting\javascript\bindings\generated".