mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +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
33e914b1eb
commit
c327f42b0a
3 changed files with 11 additions and 17 deletions
|
@ -22,18 +22,12 @@ def create_engine_file(env, target, source, externs):
|
|||
|
||||
|
||||
def add_js_libraries(env, libraries):
|
||||
if "JS_LIBS" not in env:
|
||||
env["JS_LIBS"] = []
|
||||
env.Append(JS_LIBS=env.File(libraries))
|
||||
|
||||
|
||||
def add_js_pre(env, js_pre):
|
||||
if "JS_PRE" not in env:
|
||||
env["JS_PRE"] = []
|
||||
env.Append(JS_PRE=env.File(js_pre))
|
||||
|
||||
|
||||
def add_js_externs(env, externs):
|
||||
if "JS_EXTERNS" not in env:
|
||||
env["JS_EXTERNS"] = []
|
||||
env.Append(JS_EXTERNS=env.File(externs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue