Skip to content
Snippets Groups Projects

Add options to wasm build

Merged Mateusz Tyszczak requested to merge tm-add-options-to-wasm-build into develop
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -8,11 +8,15 @@ include:
SOURCE_DIR: ""
# Output directory where should be stored binaries - it should be overrided by derived job
BINARIES_DIR: ""
# Target environment for WASM to build - shouble be either web or node
TARGET_ENVIRONMENT: "web"
# Should include filesystem support based on the target environment (idbfs or node fs) - set to either 1 (enabled) or 0 (disabled)
WASM_USE_FS: "0"
script:
- mkdir -vp "${BINARIES_DIR}"
- cd "${BINARIES_DIR}"
- cmake -DBoost_NO_WARN_NEW_VERSIONS=1 -DBoost_USE_STATIC_RUNTIME=ON -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -S "${SOURCE_DIR}" -B "${BINARIES_DIR}"
- cmake -DBoost_NO_WARN_NEW_VERSIONS=1 -DBoost_USE_STATIC_RUNTIME=ON -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_USE_FS="${WASM_USE_FS}" -DTARGET_ENVIRONMENT="${TARGET_ENVIRONMENT}" -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -S "${SOURCE_DIR}" -B "${BINARIES_DIR}/${TARGET_ENVIRONMENT}"
- make -j 8
artifacts:
Loading