diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 17:23:13 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 17:23:13 +0100 |
| commit | 32d26371627638570b74d678ab73deb7b87af8e4 (patch) | |
| tree | 3097b3678086ddaed7930a02e5c88464f1c7d03e /CMakeLists.txt | |
| parent | 7ec28a3f1d417cd5b5adead895a25e42035ef037 (diff) | |
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).
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
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 $<TARGET_FILE:seq_compiler>) + 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 $<TARGET_FILE:seq_compiler> ${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..." ) |
