aboutsummaryrefslogtreecommitdiff
path: root/bindgen
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-10-25 15:50:39 +0200
committerAndre Weissflog <floooh@gmail.com>2024-10-25 15:50:39 +0200
commitabc9ecec84078243ac5fa7f6a7202124cb6d532f (patch)
tree723ddecfa30734114b4114dd0a40a9dcd31b60c2 /bindgen
parente7d5229bffa902d911f7534e233154ad7a048ecd (diff)
parent648961074400828d637f2415598ac09991d305c4 (diff)
Merge branch 'master' into issue1037_bindings_cleanup
Diffstat (limited to 'bindgen')
-rw-r--r--bindgen/gen_jai.py3
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( '}')