feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -61,8 +61,12 @@ for lib in sys_env["JS_LIBS"]:
|
|||
sys_env.Append(LINKFLAGS=["--js-library", lib.abspath])
|
||||
for js in sys_env["JS_PRE"]:
|
||||
sys_env.Append(LINKFLAGS=["--pre-js", js.abspath])
|
||||
|
||||
# Add JS externs to Closure.
|
||||
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] = sys_env["ENV"].get("EMCC_CLOSURE_ARGS", "")
|
||||
for ext in sys_env["JS_EXTERNS"]:
|
||||
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] += " --externs " + ext.abspath
|
||||
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] = sys_env["ENV"]["EMCC_CLOSURE_ARGS"].strip()
|
||||
|
||||
build = []
|
||||
build_targets = ["#bin/godot${PROGSUFFIX}.js", "#bin/godot${PROGSUFFIX}.wasm"]
|
||||
|
|
@ -82,7 +86,7 @@ if env["dlink_enabled"]:
|
|||
sys_env["LINKFLAGS"].remove("-fvisibility=hidden")
|
||||
|
||||
# The main emscripten runtime, with exported standard libraries.
|
||||
sys = sys_env.Program(build_targets, ["web_runtime.cpp"])
|
||||
sys = sys_env.add_program(build_targets, ["web_runtime.cpp"])
|
||||
|
||||
# The side library, containing all Godot code.
|
||||
wasm = env.add_program("#bin/godot.side${PROGSUFFIX}.wasm", web_files)
|
||||
|
|
@ -90,7 +94,7 @@ if env["dlink_enabled"]:
|
|||
else:
|
||||
# We use IDBFS. Since Emscripten 1.39.1 it needs to be linked explicitly.
|
||||
sys_env.Append(LIBS=["idbfs.js"])
|
||||
build = sys_env.Program(build_targets, web_files + ["web_runtime.cpp"])
|
||||
build = sys_env.add_program(build_targets, web_files + ["web_runtime.cpp"])
|
||||
|
||||
sys_env.Depends(build[0], sys_env["JS_LIBS"])
|
||||
sys_env.Depends(build[0], sys_env["JS_PRE"])
|
||||
|
|
@ -110,7 +114,9 @@ wrap_list = [
|
|||
build[0],
|
||||
js_engine,
|
||||
]
|
||||
js_wrapped = env.Textfile("#bin/godot", [env.File(f) for f in wrap_list], TEXTFILESUFFIX="${PROGSUFFIX}.wrapped.js")
|
||||
js_wrapped = env.NoCache(
|
||||
env.Textfile("#bin/godot", [env.File(f) for f in wrap_list], TEXTFILESUFFIX="${PROGSUFFIX}.wrapped.js")
|
||||
)
|
||||
|
||||
# 0 - unwrapped js file (use wrapped one instead)
|
||||
# 1 - wasm file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue