From ce246924ac12da5639cce049c7bb2e29de7ed637 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 09:53:21 +0100 Subject: feat(sequence): integrate v2 timeline with build system - Update main workspace to use timeline_v2.seq - Add SEQ_COMPILER_V2 using Python script (seq_compiler_v2.py) - Update DemoCodegen to use v2 compiler for main timeline - Add v1 compatibility stubs (LoadTimeline, GetDemoDuration) - Demo builds and links successfully - All tests passing (36/36) V2 timeline now integrated into build pipeline. Stub functions allow linking while proper MainSequence v2 integration is pending. handoff(Claude): V2 timeline integrated, ready for effect ports --- cmake/DemoCodegen.cmake | 8 ++++---- cmake/DemoTools.cmake | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'cmake') diff --git a/cmake/DemoCodegen.cmake b/cmake/DemoCodegen.cmake index d27e9eb..e84e17b 100644 --- a/cmake/DemoCodegen.cmake +++ b/cmake/DemoCodegen.cmake @@ -119,16 +119,16 @@ endfunction() # Generation Targets # ============================================================================= -# Timeline compilation +# Timeline compilation (v2) set(DEMO_SEQ_PATH ${WORKSPACE_TIMELINE}) set(GENERATED_TIMELINE_CC ${CMAKE_CURRENT_SOURCE_DIR}/src/generated/timeline.cc) add_custom_command( OUTPUT ${GENERATED_TIMELINE_CC} COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_SOURCE_DIR}/src/generated - COMMAND ${SEQ_COMPILER_CMD} ${DEMO_SEQ_PATH} ${GENERATED_TIMELINE_CC} - DEPENDS ${SEQ_COMPILER_DEPENDS} ${DEMO_SEQ_PATH} + COMMAND ${SEQ_COMPILER_V2_CMD} ${DEMO_SEQ_PATH} --output ${GENERATED_TIMELINE_CC} + DEPENDS ${SEQ_COMPILER_V2_DEPENDS} ${DEMO_SEQ_PATH} src/gpu/demo_effects.h - COMMENT "Compiling demo sequence from workspace ${DEMO_WORKSPACE}..." + COMMENT "Compiling v2 demo sequence from workspace ${DEMO_WORKSPACE}..." ) add_custom_target(generate_timeline ALL DEPENDS ${GENERATED_TIMELINE_CC}) diff --git a/cmake/DemoTools.cmake b/cmake/DemoTools.cmake index 8c589f1..f3a9470 100644 --- a/cmake/DemoTools.cmake +++ b/cmake/DemoTools.cmake @@ -13,7 +13,7 @@ else() set(ASSET_PACKER_DEPENDS asset_packer) endif() -# Sequence compiler tool +# Sequence compiler tool (v1) if(DEFINED SEQ_COMPILER_PATH) set(SEQ_COMPILER_CMD ${SEQ_COMPILER_PATH}) set(SEQ_COMPILER_DEPENDS ${SEQ_COMPILER_PATH}) @@ -23,6 +23,11 @@ else() set(SEQ_COMPILER_DEPENDS seq_compiler) endif() +# Sequence compiler tool (v2 - Python) +set(SEQ_COMPILER_V2_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/tools/seq_compiler_v2.py) +set(SEQ_COMPILER_V2_CMD ${CMAKE_COMMAND} -E env python3 ${SEQ_COMPILER_V2_SCRIPT}) +set(SEQ_COMPILER_V2_DEPENDS ${SEQ_COMPILER_V2_SCRIPT}) + # Tracker compiler tool if(DEFINED TRACKER_COMPILER_PATH) set(TRACKER_COMPILER_CMD ${TRACKER_COMPILER_PATH}) -- cgit v1.2.3