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 Beef lang bindings generator #496

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions .github/workflows/gen_bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
with:
repository: floooh/sokol-nim
path: bindgen/sokol-nim
- uses: actions/checkout@v2
with:
repository: kochol/sokol-beef
path: bindgen/sokol-beef
- name: generate
run: |
cd bindgen
Expand Down
10 changes: 9 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
import os, gen_nim, gen_zig, gen_beef

tasks = [
[ '../sokol_gfx.h', 'sg_', [] ],
Expand Down Expand Up @@ -26,3 +26,11 @@
main_prefix = task[1]
dep_prefixes = task[2]
gen_zig.gen(c_header_path, main_prefix, dep_prefixes)

# Beef
gen_beef.prepare()
for task in tasks:
c_header_path = task[0]
main_prefix = task[1]
dep_prefixes = task[2]
gen_beef.gen(c_header_path, main_prefix, dep_prefixes)