mirror of https://github.com/axmolengine/axmol.git
888a1e7d78
Merge branch '1.x' into dev |
||
---|---|---|
.. | ||
README.md | ||
ax_3d.ini | ||
ax_audioengine.ini | ||
ax_backend.ini | ||
ax_base.ini | ||
ax_controller.ini | ||
ax_csloader.ini | ||
ax_extension.ini | ||
ax_navmesh.ini | ||
ax_physics.ini | ||
ax_physics3d.ini | ||
ax_spine.ini | ||
ax_studio.ini | ||
ax_ui.ini | ||
ax_video.ini | ||
ax_webview.ini | ||
genbindings.py |
README.md
How to Use bindings-generator
Prerequisites
- Download libclang from https://github.com/axmolengine/buildware/releases/download/llvmorg-15.0.7/llvmorg-15.0.7.zip
- Copy
libclang.dll/libclang.dylib/libclang.so
(match with your OS) totools/bindings-generator/libclang/
, refer totools/win-ci/genbindings.ps1
On Windows:
- Make sure that you have installed
android-ndk-r19c
or later. - Install python3.7+(64bit) from https://www.python.org with
Add to 'PATH'
install option. - Install python dependices by pip.
pip install PyYAML Cheetah3
- Go to "tools/tolua" folder, and run "genbindings.py". The generated codes will be under "cocos\scripting\auto-generated\lua-bindings".
On MAC:
- Use Homebrew to install the python and use pip install the python dependencies.
brew install python3
- Install python dependices by pip3.
pip3 install PyYAML Cheetah3
- Download NDK 64bit r19c or later from Android NDK
- Run
export ANDROID_NDK=/path/to/android-ndk-19c ./genbindings.py
On Ubuntu Linux 22.04 64bit
- Install python
sudo apt-get install python3
- Install python dependices by pip.
sudo apt-get install python3-pip sudo pip3 install PyYAML Cheetah3
- Download NDK 64bit r19c or later from Android NDK
- Go to "tools/tolua", Run
export ANDROID_NDK=/path/to/android-ndk-r19c python3 ./genbindings.py