mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[HTML5] Better editor HTML, small refactor.
Side and GDNative libraries are now added by engine.js , the dynlink pre js had been deleted.
This commit is contained in:
parent
abb8d8e8ca
commit
4e09453407
6 changed files with 38 additions and 9 deletions
|
@ -1,7 +1,14 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from emscripten_helpers import run_closure_compiler, create_engine_file, add_js_libraries, add_js_pre, add_js_externs
|
||||
from emscripten_helpers import (
|
||||
run_closure_compiler,
|
||||
create_engine_file,
|
||||
add_js_libraries,
|
||||
add_js_pre,
|
||||
add_js_externs,
|
||||
get_build_version,
|
||||
)
|
||||
from methods import get_compiler_version
|
||||
from SCons.Util import WhereIs
|
||||
|
||||
|
@ -58,7 +65,6 @@ def configure(env):
|
|||
sys.exit(255)
|
||||
|
||||
## Build type
|
||||
|
||||
if env["target"] == "release":
|
||||
# Use -Os to prioritize optimizing for reduced file size. This is
|
||||
# particularly valuable for the web platform because it directly
|
||||
|
@ -142,6 +148,9 @@ def configure(env):
|
|||
env.AddMethod(add_js_pre, "AddJSPre")
|
||||
env.AddMethod(add_js_externs, "AddJSExterns")
|
||||
|
||||
# Add method for getting build version string.
|
||||
env.AddMethod(get_build_version, "GetBuildVersion")
|
||||
|
||||
# Add method that joins/compiles our Engine files.
|
||||
env.AddMethod(create_engine_file, "CreateEngineFile")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue