Add debug mode

This commit is contained in:
Jaidyn Ann 2021-07-10 09:25:54 -05:00
parent 5217c282e2
commit 437154310b
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
LIBPATHS = $(OBJ_DIR) LIBPATHS = $(OBJ_DIR)
PROTOCOL_DIR = $(OBJ_DIR)/protocols/ PROTOCOL_DIR = $(OBJ_DIR)/protocols/
DEFINES := VERSION="\"0.0.2\"" BUILD_DATE="\"$(shell date +"%Y-%m-%d %H:%M")\"" DEBUG_ENABLED ?= false
DEFINES := VERSION="\"0.0.2\"" \
BUILD_DATE="\"$(shell date +"%Y-%m-%d %H:%M")\"" \
DEBUG_ENABLED=$(DEBUG_ENABLED)

View File

@ -873,6 +873,8 @@ init_libpurple()
purple_plugins_add_finddir(B_USER_NONPACKAGED_LIB_DIRECTORY); purple_plugins_add_finddir(B_USER_NONPACKAGED_LIB_DIRECTORY);
purple_plugins_add_finddir(B_SYSTEM_NONPACKAGED_LIB_DIRECTORY); purple_plugins_add_finddir(B_SYSTEM_NONPACKAGED_LIB_DIRECTORY);
purple_debug_set_enabled(DEBUG_ENABLED);
if (!purple_core_init(PURPLE_UI_ID)) if (!purple_core_init(PURPLE_UI_ID))
return B_ERROR; return B_ERROR;