Skip to content

Commit 4362bc3

Browse files
yetistraveit65
authored andcommitted
Use gdbus generate files
1 parent 5e688bf commit 4362bc3

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/daemon/Makefile.am

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
libexec_PROGRAMS = mate-notification-daemon
22

33
mate_notification_daemon_SOURCES = \
4+
$(mate_notification_daemon_built_sources) \
45
daemon.c \
56
daemon.h \
67
engines.c \
78
engines.h \
89
stack.c \
910
stack.h \
1011
sound.c \
11-
sound.h
12+
sound.h \
13+
mnd-daemon.c
1214

1315
mate_notification_daemon_LDADD = $(NOTIFICATION_DAEMON_LIBS)
1416

15-
BUILT_SOURCES = notificationdaemon-dbus-glue.h
17+
mate_notification_daemon_built_sources = \
18+
mnd-dbus-generated.h \
19+
mnd-dbus-generated.c \
20+
$(NULL)
1621

17-
notificationdaemon-dbus-glue.h: notificationdaemon.xml
18-
dbus-binding-tool --mode=glib-server --prefix=notification_daemon \
19-
$(srcdir)/notificationdaemon.xml > notificationdaemon-dbus-glue.h
22+
$(mate_notification_daemon_built_sources) : Makefile.am $(srcdir)/notificationdaemon.xml
23+
$(AM_V_GEN) gdbus-codegen \
24+
--interface-prefix org.freedesktop. \
25+
--c-namespace NotifyDaemon \
26+
--generate-c-code mnd-dbus-generated \
27+
$(srcdir)/notificationdaemon.xml
2028

2129
AM_CPPFLAGS = \
2230
-I$(top_srcdir) \
@@ -25,6 +33,6 @@ AM_CPPFLAGS = \
2533

2634
EXTRA_DIST = notificationdaemon.xml
2735
DISTCLEANFILES = \
28-
notificationdaemon-dbus-glue.h
36+
$(mate_notification_daemon_built_sources)
2937

3038
-include $(top_srcdir)/git.mk

0 commit comments

Comments
 (0)