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:
@@ -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 "")
|
||||
|
||||
Reference in New Issue
Block a user