From 68422c5dd68ec0e3b326d3718035d6513142fe4c Mon Sep 17 00:00:00 2001 From: eska Date: Thu, 12 Jan 2017 01:05:07 +0100 Subject: Relink web build when HTML shell changes Emscripten injects its loader script when linking, so force relinking whenever the HTML shell changes. Also remove useless FULL_ES2 flag, which should be a linker flag, but would impact performance too much. --- platform/javascript/SCsub | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/javascript/SCsub') diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub index 5d5cd1590a..a20c0f7a70 100644 --- a/platform/javascript/SCsub +++ b/platform/javascript/SCsub @@ -22,6 +22,7 @@ env.Append(LINKFLAGS=["-s", "EXPORTED_FUNCTIONS=\"['_main','_audio_server_mix_fu env.Append(LINKFLAGS=["--shell-file", '"platform/javascript/godot_shell.html"']) build = env.Program('#bin/godot', javascript_objects, PROGSUFFIX=env["PROGSUFFIX"] + ".html") +Depends(build, "godot_shell.html") def make_html_shell(target, source, env): html_path = target[0].rstr() -- cgit v1.2.3