From e96f282d77bd114493c8d9097c7fb7eaaad2338b Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 14:50:19 +0100 Subject: build: Add pack_source target to create complete source archive Adds a 'pack_source' CMake target that creates 'demo_all.tgz' using tar. This includes all source files, third-party dependencies (even those ignored by git), and submodules, ensuring a self-contained offline build package. --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 81103f8..7030152 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -282,3 +282,17 @@ add_custom_target(final COMMENT "Generating assets and performing final assembly (crunching)..." WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +# Pack Source Target +add_custom_target(pack_source + COMMAND tar -czf demo_all.tgz + --exclude=.git + --exclude=build* + --exclude=.gemini* + --exclude=*.tgz + --exclude=*.zip + --exclude=.DS_Store + . + COMMENT "Packing entire project source (including submodules) into demo_all.tgz..." + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +) -- cgit v1.2.3