axmol/tools/tolua
RH 9f8962d47d
Change extension folder structure to reduce file name conflicts (#1647)
* Restructure extension folder structure to reduce conflicts with project source files

* Do not include SDFGen headers for Android builds

* Ensure correct paths are included for the relevant targets

* ImGui is not be enabled for WinUWP, tvOS and iOS

* Fix LUA auto binding generator to work with updated extension folder structure

* Fix path and linker issues for yasio when using prebuilt option
Set correct paths to extensions for prebuilt option
2024-02-03 10:08:22 +08:00
..
README.md Fix ci 2024-02-02 00:42:42 +08:00
ax_3d.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_audioengine.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_backend.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_base.ini Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +08:00
ax_controller.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_csloader.ini Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +08:00
ax_extension.ini Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +08:00
ax_fairygui.ini Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +08:00
ax_navmesh.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_physics.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_physics3d.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_spine.ini Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +08:00
ax_studio.ini Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +08:00
ax_ui.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_video.ini Fix ci 2024-02-02 00:42:42 +08:00
ax_webview.ini Fix ci 2024-02-02 00:42:42 +08:00
genbindings.py Add fairygui lua support (#1587) 2024-01-06 23:25:20 +08:00

README.md

How to Use bindings-generator

Prerequisites

  1. Download libclang from https://github.com/simdsoft/1kiss/releases/download/llvmorg-15.0.7/llvmorg-15.0.7.zip
  2. Copy libclang.dll/libclang.dylib/libclang.so (match with your OS) to tools/bindings-generator/libclang/, refer to tools/win-ci/genbindings.ps1

On Windows:

  • Make sure that you have installed android-ndk-r23c 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 r23c or later from Android NDK
  • Run
    export ANDROID_NDK=/path/to/android-ndk-r23c
    ./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 r23c from Android NDK
  • Go to "tools/tolua", Run
    export ANDROID_NDK=/path/to/android-ndk-r23c
    python3 ./genbindings.py