From 616f5c97013f1344caa6e899de6cc99664faa5e9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 30 Jun 2005 08:16:45 +0000 Subject: Add an optional dbus interface (--enable-dbus). Rework application code, 2005-06-24 Marco Pesenti Gritti * shell/ev-application-service.xml: * configure.ac: * shell/Makefile.am: * shell/ev-application.c: * shell/ev-application.h: * shell/ev-window.c: * shell/ev-window.h: * shell/main.c: Add an optional dbus interface (--enable-dbus). Rework application code, mainly to be easier to use "remotely". Do not open multiple windows with the same document, spatial evince! --- (limited to 'shell/Makefile.am') diff --git a/shell/Makefile.am b/shell/Makefile.am index c916987..689199e 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -20,6 +20,10 @@ INCLUDES= \ $(EVINCE_DISABLE_DEPRECATED) \ $(NULL) +if ENABLE_DBUS +INCLUDES += $(DBUS_CFLAGS) +endif + bin_PROGRAMS=evince noinst_LTLIBRARIES = libevbackendfactory.la @@ -112,8 +116,16 @@ evince_LDADD= \ libevbackendfactory.la \ $(NULL) +if ENABLE_DBUS +evince_LDADD += $(DBUS_LIBS) +endif + BUILT_SOURCES = ev-marshal.h ev-marshal.c +if ENABLE_DBUS +BUILT_SOURCES += ev-application-service.h +endif + EXTRA_DIST = ev-marshal.list ev-marshal.h: ev-marshal.list @@ -122,3 +134,6 @@ ev-marshal.h: ev-marshal.list ev-marshal.c: ev-marshal.list echo '#include "ev-marshal.h"' > ev-marshal.c glib-genmarshal --prefix=ev_marshal ev-marshal.list --body >> ev-marshal.c + +ev-application-service.h: ev-application-service.xml + dbus-binding-tool --mode=glib-server --output=ev-application-service.h $(srcdir)/ev-application-service.xml -- cgit v0.9.1