summaryrefslogtreecommitdiff
path: root/shell/Makefile.am
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-10 16:05:59 +0200
committerraveit65 <[email protected]>2018-03-21 06:56:34 +0100
commit3f48838e6f469e5090a0b95864c298736b3b4e4f (patch)
treeb0dfdab3459ef977de03923c3e6a4c58929bb231 /shell/Makefile.am
parente51014b5a0b2750df5ccfe98696227c949c93c28 (diff)
downloadatril-3f48838e6f469e5090a0b95864c298736b3b4e4f.tar.bz2
atril-3f48838e6f469e5090a0b95864c298736b3b4e4f.tar.xz
shell: Use gdbus-codegen for the org.mate.atril.Application interface
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=c9aada8
Diffstat (limited to 'shell/Makefile.am')
-rw-r--r--shell/Makefile.am31
1 files changed, 26 insertions, 5 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 38774613..7f044db4 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -44,8 +44,6 @@ atril_SOURCES= \
ev-history.h \
ev-keyring.h \
ev-keyring.c \
- ev-marshal.c \
- ev-marshal.h \
ev-message-area.c \
ev-message-area.h \
ev-metadata.c \
@@ -90,13 +88,22 @@ atril_SOURCES= \
ev-sidebar-thumbnails.h \
main.c
+nodist_atril_SOURCES = \
+ ev-marshal.c \
+ ev-marshal.h \
+ $(NULL)
+
if ENABLE_DBUS
atril_SOURCES += \
ev-media-player-keys.c \
- ev-media-player-keys.h
+ ev-media-player-keys.h \
+ $(NULL)
+nodist_atril_SOURCES += \
+ ev-gdbus-generated.c \
+ ev-gdbus-generated.h \
+ $(NULL)
endif
-
atril_LDFLAGS = $(AM_LDFLAGS)
atril_LDADD= \
@@ -113,6 +120,10 @@ atril_LDADD= \
BUILT_SOURCES = ev-marshal.h ev-marshal.c
if ENABLE_DBUS
+BUILT_SOURCES += ev-gdbus-generated.c ev-gdbus-generated.h
+endif
+
+if ENABLE_DBUS
atrild_SOURCES= \
ev-daemon.c
@@ -131,7 +142,9 @@ atrild_LDADD= \
$(EV_DAEMON_LIBS)
endif
-EXTRA_DIST = ev-marshal.list
+EXTRA_DIST = \
+ ev-marshal.list \
+ ev-gdbus.xml
ev-marshal.h: $(srcdir)/ev-marshal.list
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --header > ev-marshal.h
@@ -140,6 +153,14 @@ ev-marshal.c: $(srcdir)/ev-marshal.list
echo '#include "ev-marshal.h"' > ev-marshal.c
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --body >> ev-marshal.c
+ev-gdbus-generated.c ev-gdbus-generated.h: ev-gdbus.xml Makefile
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix=org.mate.atril \
+ --c-namespace=Ev \
+ --c-generate-object-manager \
+ --generate-c-code ev-gdbus-generated \
+ $<
+
DISTCLEANFILES =
-include $(top_srcdir)/git.mk