[HTML5] Make GDNative support feature-based.
This is suboptimal as it requires adding an extra compile flag, but rewriting how feature tags work is beyond the scope of this work.
This commit is contained in:
parent
1e7bd3d08b
commit
dd9503dc19
4 changed files with 22 additions and 3 deletions
|
|
@ -52,6 +52,7 @@ if env["gdnative_enabled"]:
|
|||
|
||||
# The side library, containing all Godot code.
|
||||
wasm_env = env.Clone()
|
||||
wasm_env.Append(CPPDEFINES=["WASM_GDNATIVE"]) # So that OS knows it can run GDNative libraries.
|
||||
wasm_env.Append(CCFLAGS=["-s", "SIDE_MODULE=2"])
|
||||
wasm_env.Append(LINKFLAGS=["-s", "SIDE_MODULE=2"])
|
||||
wasm = wasm_env.add_program("#bin/godot.side${PROGSUFFIX}.wasm", javascript_files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue