Skip to content
Permalink
Browse files

Use gdbus generate files

  • Loading branch information...
yetist authored and raveit65 committed May 8, 2018
1 parent 5e688bf commit 4362bc352733b9729b2acd7bf9c4b0991e35fb87
Showing with 14 additions and 6 deletions.
  1. +14 −6 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) \
@@ -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.
You can’t perform that action at this time.