Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use gdbus generate files
  • Loading branch information
yetist authored and raveit65 committed Jun 6, 2018
1 parent 5e688bf commit 4362bc3
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/daemon/Makefile.am
@@ -1,22 +1,30 @@
libexec_PROGRAMS = mate-notification-daemon

mate_notification_daemon_SOURCES = \
$(mate_notification_daemon_built_sources) \
daemon.c \
daemon.h \
engines.c \
engines.h \
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) \
Expand All @@ -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

0 comments on commit 4362bc3

Please sign in to comment.