Mercurial > projects > xwrited
diff Makefile @ 2:c53bcdabbba7
Make use of GDBus for glib >= 2.25.5
From glib 2.25.5 on GDBus is available and the D-Bus GLib bindings are no
longer needed.
author | Guido Berhoerster <guido+xwrited@berhoerster.name> |
---|---|
date | Sun, 27 Apr 2014 23:12:06 +0200 |
parents | 52694b49dcc4 |
children | 6e2d746b06ae |
line wrap: on
line diff
--- a/Makefile Sun Apr 27 23:12:06 2014 +0200 +++ b/Makefile Sun Apr 27 23:12:06 2014 +0200 @@ -53,7 +53,7 @@ OS_NAME := $(shell uname -s) -PKGCONFIG_LIBS := dbus-1 glib-2.0 dbus-glib-1 libnotify +PKGCONFIG_LIBS := dbus-1 glib-2.0 libnotify EXTRA_LIBS := ifeq ($(OS_NAME),Linux) @@ -66,6 +66,12 @@ OBJS_UTMP := xwrited-utmp-utmpx.o endif +ifeq ($(shell pkg-config --exists 'glib-2.0 >= 2.25.5' && printf "true"), true) + CPPFLAGS_EXTRA := -DHAVE_GLIB_GDBUS +else + PKGCONFIG_LIBS += dbus-glib-1 +endif + OBJS = main.o xwrited-debug.o xwrited-unique.o $(OBJS_UTMP) AUTOSTART_FILE = $(PACKAGE).desktop MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po))