Add debug mode
This commit is contained in:
parent
5217c282e2
commit
437154310b
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue