mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
[HTML5] Reorganize build script.
Simplify helper functions, fix env/sys_env confusion and depends for externs and pre-js.
This commit is contained in:
parent
ecf432abc7
commit
6988b21d00
3 changed files with 11 additions and 17 deletions
|
@ -131,7 +131,10 @@ def configure(env):
|
|||
jscc = env.Builder(generator=run_closure_compiler, suffix=".cc.js", src_suffix=".js")
|
||||
env.Append(BUILDERS={"BuildJS": jscc})
|
||||
|
||||
# Add helper method for adding libraries.
|
||||
# Add helper method for adding libraries, externs, pre-js.
|
||||
env["JS_LIBS"] = []
|
||||
env["JS_PRE"] = []
|
||||
env["JS_EXTERNS"] = []
|
||||
env.AddMethod(add_js_libraries, "AddJSLibraries")
|
||||
env.AddMethod(add_js_pre, "AddJSPre")
|
||||
env.AddMethod(add_js_externs, "AddJSExterns")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue