## Makefile.am fragment sourced by src/Makefile.am.
if WITH_DBUS
#############################
# Sources for DBus interface
#############################
ink_common_sources += \
###########################
# Build DBus wrapper files
###########################
dbus-binding-tool --mode=glib-server --output=$@ --prefix=application_interface $^
dbus-binding-tool --mode=glib-server --output=$@ --prefix=document_interface $^
dbus-binding-tool --mode=glib-client --output=$@ --prefix=document_interface $^
BUILT_SOURCES += \
###########################
# Distribut DBus interface
###########################
EXTRA_DIST += \
###########################
# DBus Activation Service
###########################
# Dbus service file
servicedir = $(DBUSSERVICEDIR)
service_in_files = extension/dbus/org.inkscape.service.in
service_DATA = $(service_in_files:.service.in=.service)
# Rule to make the service file with bindir expanded
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|bindir|$(prefix)|" $<> $@
############################
# DBus Interface Helper Lib
############################
lib_LTLIBRARIES = \
libinkdbusincludedir = $(includedir)/libinkdbus-0.48/libinkdbus
libinkdbusinclude_HEADERS = \
libinkdbus_la_SOURCES = \
libinkdbus_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined \
-export-symbols-regex "^[^_d].*"
libinkdbus_la_CFLAGS = \
$(DBUS_CFLAGS) \
$(INKSCAPE_CFLAGS) \
-I$(builddir)/extension/dbus \
-Wall
libinkdbus_la_LIBADD = \
$(DBUS_LIBS) \
$(INKSCAPE_LIBS)
############################
# DBus Pkgconfig file
############################
pkgconfig_DATA = extension/dbus/wrapper/inkdbus.pc
pkgconfigdir = $(libdir)/pkgconfig
else # WITH_DBUS
EXTRA_DIST += \
endif