summaryrefslogtreecommitdiff
path: root/src/daemon/Makefile.am
diff options
context:
space:
mode:
authoryetist <[email protected]>2018-05-08 13:16:03 +0800
committerraveit65 <[email protected]>2018-06-06 17:41:02 +0200
commit4362bc352733b9729b2acd7bf9c4b0991e35fb87 (patch)
treeeffba26dac7673b633664a4c8a967642187c988b /src/daemon/Makefile.am
parent5e688bfb146b9731496650eb8dcaf5ef9ba778ad (diff)
downloadmate-notification-daemon-4362bc352733b9729b2acd7bf9c4b0991e35fb87.tar.bz2
mate-notification-daemon-4362bc352733b9729b2acd7bf9c4b0991e35fb87.tar.xz
Use gdbus generate files
Diffstat (limited to 'src/daemon/Makefile.am')
-rw-r--r--src/daemon/Makefile.am20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
index ce476e5..db1f6be 100644
--- a/src/daemon/Makefile.am
+++ b/src/daemon/Makefile.am
@@ -1,6 +1,7 @@
libexec_PROGRAMS = mate-notification-daemon
mate_notification_daemon_SOURCES = \
+ $(mate_notification_daemon_built_sources) \
daemon.c \
daemon.h \
engines.c \
@@ -8,15 +9,22 @@ mate_notification_daemon_SOURCES = \
stack.c \
stack.h \
sound.c \
- sound.h
+ sound.h \
+ mnd-daemon.c
mate_notification_daemon_LDADD = $(NOTIFICATION_DAEMON_LIBS)
-BUILT_SOURCES = notificationdaemon-dbus-glue.h
+mate_notification_daemon_built_sources = \
+ mnd-dbus-generated.h \
+ mnd-dbus-generated.c \
+ $(NULL)
-notificationdaemon-dbus-glue.h: notificationdaemon.xml
- dbus-binding-tool --mode=glib-server --prefix=notification_daemon \
- $(srcdir)/notificationdaemon.xml > notificationdaemon-dbus-glue.h
+$(mate_notification_daemon_built_sources) : Makefile.am $(srcdir)/notificationdaemon.xml
+ $(AM_V_GEN) gdbus-codegen \
+ --interface-prefix org.freedesktop. \
+ --c-namespace NotifyDaemon \
+ --generate-c-code mnd-dbus-generated \
+ $(srcdir)/notificationdaemon.xml
AM_CPPFLAGS = \
-I$(top_srcdir) \
@@ -25,6 +33,6 @@ AM_CPPFLAGS = \
EXTRA_DIST = notificationdaemon.xml
DISTCLEANFILES = \
- notificationdaemon-dbus-glue.h
+ $(mate_notification_daemon_built_sources)
-include $(top_srcdir)/git.mk