From 32d26371627638570b74d678ab73deb7b87af8e4 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 17:23:13 +0100 Subject: fix: Cross-compilation and style compliance Fixes seq_compiler build for Windows cross-compilation. Moves common WebGPU compatibility shims to gpu.h. Applies project-wide coding style via clang-format. Verified on both macOS (native) and Windows (cross-compile). --- scripts/build_win.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/build_win.sh b/scripts/build_win.sh index db95416..d61f308 100755 --- a/scripts/build_win.sh +++ b/scripts/build_win.sh @@ -4,16 +4,18 @@ set -e # 1. Build native tools (asset_packer) echo "Building native tools..." cmake -S . -B build_native -DDEMO_BUILD_TOOLS=OFF -DDEMO_BUILD_TESTS=OFF -cmake --build build_native --target asset_packer +cmake --build build_native --target asset_packer seq_compiler + +ASSET_PACKER_PATH=$(pwd)/build_native/asset_packer +SEQ_COMPILER_PATH=$(pwd)/build_native/seq_compiler -# 2. Cross-compile for Windows echo "Cross-compiling for Windows..." cmake -S . -B build_win \ -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-MinGW-w64.cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DASSET_PACKER_PATH=$(pwd)/build_native/asset_packer \ - -DDEMO_BUILD_TOOLS=OFF \ - -DDEMO_BUILD_TESTS=OFF + -DDEMO_CROSS_COMPILE_WIN32=ON \ + -DDEMO_STRIP_ALL=ON \ + -DASSET_PACKER_PATH=$ASSET_PACKER_PATH \ + -DSEQ_COMPILER_PATH=$SEQ_COMPILER_PATH cmake --build build_win -- cgit v1.2.3