Files
workinf_Blender_Wasm/tools/web/check-dual-engine.sh
2026-08-15 01:01:23 -04:00

19 lines
676 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
native_dir="${repo_root}/build_web/native"
mkdir -p "${native_dir}"
c++ -std=c++20 -O2 \
-I"${repo_root}/blender-5.2.0/source/blender/web_engine" \
-I"${repo_root}/blender-5.2.0/extern/json/include" \
"${repo_root}/blender-5.2.0/source/blender/web_engine/web_engine_api.cpp" \
"${repo_root}/web/engine/web_engine_native_reader_stub.cpp" \
"${repo_root}/web/engine/web_engine_native_smoke.cpp" \
-o "${native_dir}/web_engine_native_smoke"
"${native_dir}/web_engine_native_smoke"
node "${repo_root}/tools/web/run-web-engine-smoke.mjs"
printf 'dual-engine-ok\n'