Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jai bindgen #1090

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bindgen/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ sokol-zig/
sokol-odin/
sokol-rust/
sokol-d/
sokol-jai/
1 change: 1 addition & 0 deletions bindgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ To update the Zig bindings:
> git clone https://github.com/floooh/sokol-odin
> git clone https://github.com/floooh/sokol-rust
> git clone https://github.com/floooh/sokol-d
> git clone https://github.com/colinbellino/sokol-jai
> python3 gen_all.py
```

Expand Down
8 changes: 7 additions & 1 deletion bindgen/gen_all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, gen_nim, gen_zig, gen_odin, gen_rust, gen_d
import os, gen_nim, gen_zig, gen_odin, gen_rust, gen_d, gen_jai

tasks = [
[ '../sokol_log.h', 'slog_', [] ],
Expand All @@ -12,6 +12,12 @@
[ '../util/sokol_shape.h', 'sshape_', ['sg_'] ],
]

# Jai
gen_jai.prepare()
for task in tasks:
[c_header_path, main_prefix, dep_prefixes] = task
gen_jai.gen(c_header_path, main_prefix, dep_prefixes)

# Odin
gen_odin.prepare()
for task in tasks:
Expand Down
Loading
Loading