diff options
| author | Colin Bellino <git@colinbellino.com> | 2024-10-16 17:31:01 +0200 |
|---|---|---|
| committer | Colin Bellino <git@colinbellino.com> | 2024-10-16 17:31:01 +0200 |
| commit | cbcc2b9ebc78517eda4fc5f6cb95639d89811f98 (patch) | |
| tree | 3deb8bf8181d981db8f89be253b0356ed8fcb206 /bindgen | |
| parent | 4bda1469d3b311af03a34dd956460776c920dc2e (diff) | |
Add .WASM support for Jai bindgen
Diffstat (limited to '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..a9958099 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_wgpu_debug"; }}') + l(f' else {{ {clib_import} :: #library,no_dll "{clib_prefix}_wasm_wgpu_release"; }}') l( '} else {') l( ' log_error("This OS is currently not supported");') l( '}') |