mirror of https://github.com/axmolengine/axmol.git
4f6fd3ef64
commit 87b7c3e404a9b6cce6d4f6bc8565e7feef429ee0 Author: geron-cn <c.ever.fallen@gmail.com> Date: Thu Mar 3 13:43:04 2016 +0800 change enum to enum class use tabitem as pointer to replace _currentTabItemIndex commit c0830cc581b8a07d6eed63268bf5be6a828c113a Merge: 3663156 166931a Author: geron-cn <c.ever.fallen@gmail.com> Date: Thu Mar 3 11:48:44 2016 +0800 Merge remote-tracking branch 'gero/tabview' into tabcontrol commit 366315624143ff01c3e2b22b415ab79050e381e4 Author: geron-cn <c.ever.fallen@gmail.com> Date: Thu Mar 3 11:48:15 2016 +0800 Squashed commit of the following: commit 166931a28c8736ab58b7c4319c1139b5e4865a9e Author: geron-cn <c.ever.fallen@gmail.com> Date: Wed Mar 2 21:35:06 2016 +0800 fix commit e0eb069846a8ceb4b726c3c945801c944404b102 Author: geron-cn <c.ever.fallen@gmail.com> Date: Wed Mar 2 21:30:44 2016 +0800 fix active deactive in tabcontrol commit aeb1c857cab23299e44a86ac1f627c7bd5fa5a6d Author: geron-cn <c.ever.fallen@gmail.com> Date: Wed Mar 2 20:16:22 2016 +0800 fix active -1 commit e57796cbbae851e8cff52656b3265c80c2e8f6f7 Author: geron-cn <c.ever.fallen@gmail.com> Date: Wed Mar 2 16:00:51 2016 +0800 fix merge file commit cdd44f1c577ad190bc175896107a48fbb36b65bb Merge: 1658ad6 |
||
---|---|---|
.. | ||
README.mdown | ||
cocos2dx.ini | ||
cocos2dx_3d.ini | ||
cocos2dx_3d_ext.ini | ||
cocos2dx_audioengine.ini | ||
cocos2dx_builder.ini | ||
cocos2dx_experimental_video.ini | ||
cocos2dx_experimental_webView.ini | ||
cocos2dx_extension.ini | ||
cocos2dx_navmesh.ini | ||
cocos2dx_physics3d.ini | ||
cocos2dx_spine.ini | ||
cocos2dx_studio.ini | ||
cocos2dx_ui.ini | ||
genbindings.py |
README.mdown
How to Use bindings-generator
On Windows:
- Make sure that you have installed
android-ndk-r10c
or later. - Download python2.7.3 (32bit) 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.11.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"
- Set environment variables (
NDK_ROOT
) andPYTHON_BIN
- Go to "cocos2d-x/tools/tojs" folder, and run "genbindings.py". The generated codes will be under "cocos\scripting\auto-generated\js-bindings".
On MAC:
- The OSX 10.10 has a built-in python2.7 and if your os don't have python2.7 then use Homebrew to install the python and use pip install the python dependencies.
brew install python
- Install python dependices by pip.
sudo easy_install pip sudo pip install PyYAML sudo pip install Cheetah
- Download NDK 64bit r10c or later from Android Ndk
- Run
export NDK_ROOT=/path/to/android-ndk-r10c ./genbindings.py
On Ubuntu Linux 12.04 64bit
- Install python
sudo apt-get install python2.7
- Install python dependices by pip.
sudo apt-get install python-pip sudo pip install PyYAML sudo pip install Cheetah
- Download NDK 64bit r10c or later from Android Ndk
- Go to "cocos2d-x/tools/tojs", Run
export NDK_ROOT=/path/to/android-ndk-r10c ./genbindings.py