diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-10-23 19:41:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-23 19:41:11 +0200 |
| commit | c25638026fc2fa23331ceae10cff056048b57db6 (patch) | |
| tree | 3ebbb3f07fed4bd5378341f57b61d056e342af5f | |
| parent | 2aaa4423c60d3bb9e88b49880d86d20dd0d2dc7a (diff) | |
| parent | 23a812cde7521132595a3c6854b26de2fa48cf0b (diff) | |
Merge pull request #1128 from colinbellino/jai-bindgen-wasm
Add .WASM support for Jai bindgen
| -rw-r--r-- | bindgen/gen_jai.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bindgen/gen_jai.py b/bindgen/gen_jai.py index fe643280..376d89af 100644 --- a/bindgen/gen_jai.py +++ b/bindgen/gen_jai.py @@ -383,6 +383,9 @@ def gen_c_imports(inp, c_prefix, prefix): l(f' {linux_gl_libs}') l(f' #if DEBUG {{ {clib_import} :: #library,no_dll "{clib_prefix}_linux_x64_gl_debug"; }}') l(f' else {{ {clib_import} :: #library,no_dll "{clib_prefix}_linux_x64_gl_release"; }}') + l( '} else #if OS == .WASM {') + l(f' #if DEBUG {{ {clib_import} :: #library,no_dll "{clib_prefix}_wasm_gl_debug"; }}') + l(f' else {{ {clib_import} :: #library,no_dll "{clib_prefix}_wasm_gl_release"; }}') l( '} else {') l( ' log_error("This OS is currently not supported");') l( '}') |