diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-13 08:32:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 08:32:32 +0100 |
commit | 0dd96bccd3fd14c2c0380ecc6326d2a655d8d826 (patch) | |
tree | fc5063333de1ec5640c7d827a357d3af55f0d119 /platform/javascript/SCsub | |
parent | 77d3c26fc382249bb491b8b335516e8230704bc9 (diff) | |
parent | 2970061a73f3cc482b2f1e4dc4ec42e32568134e (diff) |
Merge pull request #12867 from eska014/html5-http
Implement HTTPClient in HTML5 platform
Diffstat (limited to 'platform/javascript/SCsub')
-rw-r--r-- | platform/javascript/SCsub | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub index cfc0741318..e3015d87b9 100644 --- a/platform/javascript/SCsub +++ b/platform/javascript/SCsub @@ -7,6 +7,7 @@ javascript_files = [ "audio_driver_javascript.cpp", "javascript_main.cpp", "power_javascript.cpp", + "http_client_javascript.cpp", "javascript_eval.cpp", ] @@ -42,6 +43,12 @@ else: js = env.Program(['#bin/godot'] + implicit_targets, javascript_objects, PROGSUFFIX=env['PROGSUFFIX'] + '.js')[0]; zip_files.append(InstallAs(zip_dir.File('godot.js'), js)) +js_libraries = [] +js_libraries.append(env.File('http_request.js')) +for lib in js_libraries: + env.Append(LINKFLAGS=['--js-library', lib.path]) +env.Depends(js, js_libraries) + postjs = env.File('engine.js') env.Depends(js, [prejs, postjs]) env.Append(LINKFLAGS=['--pre-js', prejs.path]) |