diff options
author | David Snopek <dsnopek@gmail.com> | 2020-09-26 17:15:21 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2021-01-04 17:02:37 -0600 |
commit | a54a2d65e16cea409c8a876f517451d3168da13b (patch) | |
tree | c2cc62d0612cea17620e6c8807e4d89d45ecd44b /platform/javascript/SCsub | |
parent | a511a26ad82bf70ed00ab34a3201ec5c6049387f (diff) |
Add support for WebXR
Diffstat (limited to 'platform/javascript/SCsub')
-rw-r--r-- | platform/javascript/SCsub | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub index 7a8005fe30..1d3f96a6b8 100644 --- a/platform/javascript/SCsub +++ b/platform/javascript/SCsub @@ -67,6 +67,16 @@ else: sys_env.Depends(build[0], sys_env["JS_LIBS"]) +if "JS_PRE" in env: + for js in env["JS_PRE"]: + env.Append(LINKFLAGS=["--pre-js", env.File(js).path]) + env.Depends(build, env["JS_PRE"]) + +if "JS_EXTERNS" in env: + for ext in env["JS_EXTERNS"]: + env["ENV"]["EMCC_CLOSURE_ARGS"] += " --externs " + ext.path + env.Depends(build, env["JS_EXTERNS"]) + engine = [ "js/engine/preloader.js", "js/engine/utils.js", |