- Install pre-built https://webassembly.org/getting-started/developers-guide (into directory
fips-sdks/win/emsdk-portable)
In fips/cmake-toolchains/emscripten.toolchain.cmake:
- Change
set(FIPS_EMSCRIPTEN_SDK_VERSION "incoming")for version (found infips-sdks/win/emsdk-portable/emscripten) - Change
option(FIPS_EMSCRIPTEN_ALLOW_MEMORY_GROWTH "emscripten: allow memory growth" OFF)to ON
The clang compiler will be less permissive than default msvc. Expect to fix some new compilation errors.
Watch out for implementation-specific features like strtok.
Use only webgl2 configurations if you can (webgl requires nonsense like power of two textures). Type fips list configs to view the full list. webgl2-emsc-ninja-debug is nice for debugging. webgl2-wasm-ninja-release for release.
Only ever use fips gen, never fips config.
- Note: I've found this to be unnecessary when testing locally on windows, just open the main
.htmlfile in a browser cdtofips-deploy/<app name>/<config>python -m http.server --bind 127.0.0.1 8000- Open
http://127.0.0.1:8000/<app name>.htmlin browser