Enhance debugging capabilities and update build configuration

- Introduced a new debug logging mechanism by defining `dbg_log` for conditional logging based on the `DEBUG_BUILD` option.
- Updated `build.ps1` to include a debug flag for CMake configuration.
- Refactored logging calls across multiple source files to utilize the new `dbg_log` function, improving consistency and clarity in debug output.
- Added a new header file `debug-log.h` to centralize debug logging definitions.
This commit is contained in:
Nils
2026-05-04 16:30:04 +02:00
parent 6d16baf052
commit ebc9013c6e
13 changed files with 210 additions and 259 deletions
+3
View File
@@ -160,8 +160,11 @@ else()
set(_PLUGIN_VER "${PROJECT_VERSION}")
endif()
option(DEBUG_BUILD "Debug build: show update dialog but don't stop server" OFF)
target_compile_definitions(easy-irl-stream PRIVATE
PLUGIN_VERSION="${_PLUGIN_VER}"
$<$<BOOL:${DEBUG_BUILD}>:DEBUG_BUILD>
)
set_target_properties(easy-irl-stream PROPERTIES PREFIX "")