Files
workinf_Blender_Wasm/tools/web/build-web-engine-variants.sh
mes123456 c2c65d3a09
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
Rebuild local Blender WASM environment and recovery evidence
2026-08-27 20:22:15 +08:00

21 lines
661 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
source "${repo_root}/tools/web/emscripten-env.sh"
configure_variant() {
local name="$1"
local threads="$2"
local build_dir="${repo_root}/build_web-${name}"
emcmake cmake --fresh -S "${repo_root}/web/engine" -B "${build_dir}" -G Ninja \
-DCMAKE_BUILD_TYPE=Release -DWEB_ENGINE_THREADS="${threads}"
cmake --build "${build_dir}" --target web_engine
test -s "${build_dir}/web_engine.js"
test -s "${build_dir}/web_engine.wasm"
printf '%s variant ok: %s\n' "${name}" "${build_dir}"
}
configure_variant single OFF
configure_variant pthread ON