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). --- CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3812fb7..bf8785d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,14 @@ else() endif() # Sequence Compiler Tool -add_executable(seq_compiler tools/seq_compiler.cc) +if (DEFINED SEQ_COMPILER_PATH) + set(SEQ_COMPILER_CMD ${SEQ_COMPILER_PATH}) + set(SEQ_COMPILER_DEPENDS ${SEQ_COMPILER_PATH}) +else() + add_executable(seq_compiler tools/seq_compiler.cc) + set(SEQ_COMPILER_CMD $) + set(SEQ_COMPILER_DEPENDS seq_compiler) +endif() # Configure Timeline Generation set(DEMO_SEQ_PATH ${CMAKE_CURRENT_SOURCE_DIR}/assets/demo.seq) @@ -130,8 +137,8 @@ set(GENERATED_TIMELINE_CC ${CMAKE_CURRENT_BINARY_DIR}/src/timeline.cc) add_custom_command( OUTPUT ${GENERATED_TIMELINE_CC} COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/src - COMMAND $ ${DEMO_SEQ_PATH} ${GENERATED_TIMELINE_CC} - DEPENDS seq_compiler ${DEMO_SEQ_PATH} + COMMAND ${SEQ_COMPILER_CMD} ${DEMO_SEQ_PATH} ${GENERATED_TIMELINE_CC} + DEPENDS ${SEQ_COMPILER_DEPENDS} ${DEMO_SEQ_PATH} COMMENT "Compiling demo sequence..." ) -- cgit v1.2.3