summaryrefslogtreecommitdiff
path: root/platform/javascript/detect.py
AgeCommit message (Collapse)Author
2019-08-12https://github.com/godotengine/godot/issues/31297 - HTML5: ↵mellondill
this.rtenv.callMain is not a function when using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later
2019-07-22Emscripten: Do not define BINARYEN_TRAP_MODE='clamp'Rémi Verschelde
It is not supported in Emscripten's `latest-upstream` LLVM backend, and doesn't seem necessary in the `latest` backend either. It was initially added in #22857 to solve a compilation error with the latter. Part of #30270.
2019-07-09Better detect Emscripten toolchain.Fabio Alessandrelli
Emscripten is apparently changing the variables in its config file, causing potential breakage of our build system. Binaries of the latest/latest-upstream releases are located in a subfolder of BINARYEN_ROOT called emscripten. Binaries of the other releases (e.g. sdk-1.38.31-64bit) are instead placed under the EMSCRIPTEN_ROOT folder. This PR checks if BINARYEN_ROOT has a subfolder called emscripten, if that does not exists, it falls back to checking the EMSCRIPTEN_ROOT. This way we give precedence to the new releases, given that activating multiple releases sequentially might result in having mismatching BINARYEN_ROOT and EMSCRIPTEN_ROOT.
2019-06-19Fix Emscripten root directory detection when building for HTML5Hugo Locurcio
Recent Emscripten SDK versions seem to only include the `BINARYEN_ROOT` variable in the Emscripten configuration file, whereas the platform's `detect.py` only looked at `EMSCRIPTEN_ROOT`.
2019-05-20SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools buildRémi Verschelde
Those were disable to keep size small, and on Android avoid the dependency on the STL, but for tools build (editor) this is not really a concern. Note: as of today it's not possible to build tools=yes for those platforms, but this change is one of the necessary steps to enable it. Fixes #25262.
2019-04-30SCons: Always use env.Prepend for CPPPATHRémi Verschelde
Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
2019-04-06Remove unused importsHendrikto
2019-03-02SCons: Move platform-specific Opus config to its moduleRémi Verschelde
2019-02-23Fix file preloading warning in HTML5 platformLeon Krause
2019-02-13Fix typos with codespellRémi Verschelde
Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2018-11-26Implemented audio input support for JavaScript audio driverMarcelo Fernandez
2018-10-29Enable --no-heap-copy flag for HTML5 buildsLeon Krause
2018-08-28Enable Theora module for HTML5 platformLeon Krause
2018-05-14Build HTML5 release_debug with -Os, like release.Leon Krause
The increased build time is negligible in comparison to the decreased file size.
2018-05-14Small refactoring in HTML5 build scriptsLeon Krause
Drop logic for non-existent 'profile' target
2018-04-04Merge pull request #17792 from eska014/enginejs-preloadpathsRémi Verschelde
Handle directories in engine.js preloadFile()
2018-03-29Detect and configure JavaScript build per Emscripten configuration fileLeon Krause
2018-03-27Expose Emscripten libs to engine.js discreetlyLeon Krause
2018-03-26Refactor JavaScript platform build scriptLeon Krause
2018-03-20Add RWLockDummy for NO_THREADS buildsLeon Krause
2018-03-18Disable Emscripten assertions in release_debug buildsLeon Krause
The messages generated by some assertions can be confusing to users.
2018-02-14Disabled mbedtls module in javascript platformFabio Alessandrelli
2018-02-14Deleting OpenSSL module and libraryFabio Alessandrelli
2018-01-25Disable OpenSSL module in HTML5 platform by defaultLeon Krause
2018-01-07Build WebAssembly module with -Os to decrease file sizeLeon Krause
2017-11-19Change HTML5 start-up APILeon Krause
Rename engine.start() to startGame(), new start() takes string arguments handed directly to main(). Rename Engine.loadEngine() to load(). Add setLocale(), setResizeCanvasOnStart(), setExecutableName() and preloadFile().
2017-11-18Remove asm.js support from HTML5 platformLeon Krause
Since WebGL 2.0 is required, requiring WebAssembly support as well has little impact on compatibility.
2017-10-28Detect javascript platform using EMSCRIPTEN env as wellMarcelo Fernandez
2017-09-25Use BoolVariable in platform-specific options.Elliott Sales de Andrade
2017-09-25Use BoolVariable for module options.Elliott Sales de Andrade
2017-09-25Use BoolVariable in target/component/advanced options.Elliott Sales de Andrade
2017-09-12Merge pull request #11154 from eska014/html5-startup-revampPoommetee Ketson
HTML5 start-up overhaul with download progress display
2017-09-11HTML5 start-up overhaulLeon Krause
- Implement promise-based JS interface for custom HTML page integration - Add download progress callback - Add progress bar and indeterminate spinner to default HTML page - Try downloading files multiple times when failing - Get rid of godotfs.js - Separate steps for engine initialization, game initialization and game start - Allow multiple games on one HTML page - Substitution placeholders only used in .html file - Placeholders renamed: $GODOT_BASE => $GODOT_BASENAME, $GODOT_TMEM -> $GODOT_TOTAL_MEMORY - Emscripten Module is now Engine.RuntimeEnvironment (no longer a global)
2017-08-27Make build scripts Python3 compatibleMatthias Hoelzl
- The Windows, UWP, Android (on Windows) and Linux builds are tested with Scons 3.0 alpha using Python 3. - OSX and iOS should hopefully work but are not tested since I don't have a Mac. - Builds using SCons 2.5 and Python 2 should not be impacted.
2017-07-01Buildsystem: Improve detect.py readability and fix issuesRémi Verschelde
Tried to organize the configure(env) calls in sections, using the same order for all platforms whenever possible. Apart from cosmetic changes, the following issues were fixed: - Android: cleanup linkage, remove GLESv1_CM and GLESv2 - iPhone: Remove obsolete "ios_gles22_override" option - OSX: * Fix bits detection (default to 64) and remove obsolete "force_64_bits" option (closes #9449) * Make "fat" bits argument explicit - Server: sync with X11 - Windows: clean up old DirectX 9 stuff - X11: * Do not require system OpenSSL for building (closes #9443) * Fix typo'ed use_leak_sanitizer option * Fix .llvm suffix overriding custom extra_suffix
2017-03-29Merge pull request #8191 from eska014/webgl2-exportJuan Linietsky
WebGL 2 export per WebAssembly or asm.js
2017-03-29WebGL 2 export per WebAssembly or asm.jseska
2017-03-26SCons: Add option to toggle warnings (on by default)Rémi Verschelde
All the warnings are factored out of the platform-specific files and moved to SConstruct. Will have to check that it does not introduce regressions on some platforms/compilers. (cherry picked from commit 31107daa1a41fe9ab3c7c1868479e78e16848333)
2017-03-17Some WebGL 2 and build fixes/clean-upeska
2017-03-14more html5 fixesJuan Linietsky
2017-03-10Fix web export buildeska
2017-02-22Fixes to webgl/opengl es 3.0 for compatibility with webgl2.0, still does not ↵Juan Linietsky
work though
2017-02-21Fix WebAssembly builds on Windowseska
2017-02-20Automatically zip web export templateseska
Also fix web builds on Windows and clean up
2017-02-20Fix parallel asm.js/WebAssembly buildseska
2017-02-01Enable WebGL2 in web export, start fixing buildeska
Will not yet compile
2017-01-12Relink web build when HTML shell changeseska
Emscripten injects its loader script when linking, so force relinking whenever the HTML shell changes. Also remove useless FULL_ES2 flag, which should be a linker flag, but would impact performance too much.
2016-11-30Emit asm.js code into a dedicated file for asm.js exporteska
This helps prevent browser lockups during start-up at the cost of having to distribute an extra file.
2016-11-13Remove explicit BINARYEN_METHOD for WebAssembly buildeska
This option is the default since Binaryen version 21.
2016-11-13Enable memory growth in WebAssembly buildseska
This allows setting TOTAL_MEMORY during runtime at the cost of reserving a bit more memory.