Deprecate STATIC_CONFIG

This commit is contained in:
Benedikt Heine 2017-10-16 20:25:44 +02:00
parent 20414cc3a3
commit 3fc27e4004
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@ ifneq ($(wildcard ./.git/.),)
VERSION := $(shell git describe --tags)
endif
# Warning: This is deprecated behavior
# uncomment to disable parsing of dunstrc
# or use "CFLAGS=-DSTATIC_CONFIG make" to build
#STATIC= -DSTATIC_CONFIG
@ -27,6 +28,8 @@ pkg_config_packs := dbus-1 x11 xscrnsaver \
# check if we need libxdg-basedir
ifeq (,$(findstring STATIC_CONFIG,$(CFLAGS)))
pkg_config_packs += libxdg-basedir
else
$(warning STATIC_CONFIG is deprecated behavior. It will get removed in future releases)
endif
# includes and libs

View File

@ -95,6 +95,9 @@ void load_settings(char *cmdline_config_path)
}
load_ini_file(config_file);
#else
fprintf(stderr, "Warning: dunstrc parsing disabled. "
"Using STATIC_CONFIG is deprecated behavior.\n");
#endif
settings.per_monitor_dpi = option_get_bool(