Deprecate STATIC_CONFIG
This commit is contained in:
		
							parent
							
								
									20414cc3a3
								
							
						
					
					
						commit
						3fc27e4004
					
				| @ -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
 | ||||
|  | ||||
| @ -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( | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine