From 4859c415cc7c2274a642b045ff3016b7aae3dbd1 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 3 Nov 2025 18:11:34 +0530 Subject: Add build scripts and Windows icon/resources Added: - build_dev.bat / build_dev.sh - Development build scripts - build_release.bat / build_release.sh - Release build scripts with embedding - icon.ico - Default Windows icon for executable - resources.rc - Windows resource file for icon and exe metadata - BUILD_SCRIPTS.md - Complete documentation for build scripts Features: - Automated development builds (no embedding, fast iteration) - Automated release builds (with Lua and asset embedding) - Interactive verification and cleanup - Custom icon and version info in Windows executables - Cross-platform scripts (Windows .bat and Unix .sh) - Safety checks and helpful messages The build scripts provide one-command building for both development and release workflows, with clear instructions and progress feedback. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2df11ad..61d96d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,11 @@ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DEMBED_FONT" ) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) include_directories( include ) +# Add Windows resource file for icon and exe details +if( WIN32 ) + list( APPEND SOURCES ${CMAKE_SOURCE_DIR}/resources.rc ) +endif() + # Embed Lua files if EMBED_MAIN is ON if( EMBED_MAIN ) file( GLOB LUA_FILES "${CMAKE_CURRENT_BINARY_DIR}/*.lua" ) -- cgit v1.2.3