Andre Weissflog dbe397f6ed gen_rust.py: special case SAPP_MODIFIER_* constants to u32 (fixes https://github.com/floooh/sokol-rust/issues/5) 2 лет назад
..
.gitignore ddc36813b9 Integrate automatic sokol-rust bindings generation. (#811) 2 лет назад
README.md f8abb1ca80 gen_zig.py: add compile time branches for stage2 support 3 лет назад
gen_all.py ddc36813b9 Integrate automatic sokol-rust bindings generation. (#811) 2 лет назад
gen_ir.py 818d12e997 bindings generation: dump intermediate JSON for easier debugging 3 лет назад
gen_nim.py 166db786aa add sokol_log.h to nim bindings 3 лет назад
gen_odin.py 17611db591 add sokol_log.h to odin bindings generator 3 лет назад
gen_rust.py dbe397f6ed gen_rust.py: special case SAPP_MODIFIER_* constants to u32 (fixes https://github.com/floooh/sokol-rust/issues/5) 2 лет назад
gen_util.py 471f125e0a Fix language bindings: 3 лет назад
gen_zig.py ce08661a3f add sokol_log.h to zig bindings 3 лет назад

README.md

Language Binding Generation Scripts

Zig

First make sure that clang and python3 are in the path:

> clang --version
> python3 --version

...on Windows I simply install those with scoop:

> scoop install llvm
> scoop install python

To update the Zig bindings:

> cd sokol/bindgen
> git clone https://github.com/floooh/sokol-zig
> git clone https://github.com/floooh/sokol-nim
> git clone https://github.com/floooh/sokol-odin
> python3 gen_all.py

Test and run samples:

> cd sokol/bindgen/sokol-zig
> zig build run-clear
> zig build run-triangle
> zig build run-cube
...