Makefile_insert revision 6ef14212afe96cfd4b72906aed44880b157f9ab1
c596be6d145df956e779f427dde5aabc8559dd6cglimmer## Makefile.am fragment sourced by src/Makefile.am.
c596be6d145df956e779f427dde5aabc8559dd6cglimmer
c596be6d145df956e779f427dde5aabc8559dd6cglimmerink_common_sources += \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/dbus-init.cpp \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/dbus-init.h \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/application-interface.cpp \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/application-interface.h \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/document-interface.cpp \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/document-interface.h
c596be6d145df956e779f427dde5aabc8559dd6cglimmer
c596be6d145df956e779f427dde5aabc8559dd6cglimmer## Slightly concerned about this.
c596be6d145df956e779f427dde5aabc8559dd6cglimmer## Would use += but it has to be set first.
c596be6d145df956e779f427dde5aabc8559dd6cglimmerBUILT_SOURCES = \
c596be6d145df956e779f427dde5aabc8559dd6cglimmer extension/dbus/application-server-glue.h \
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer extension/dbus/document-server-glue.h \
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer extension/dbus/document-client-glue.h
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer# extension/dbus/wrapper/libinkdbus.so.1.0 this probably belongs somewhere else
c596be6d145df956e779f427dde5aabc8559dd6cglimmer
c596be6d145df956e779f427dde5aabc8559dd6cglimmerextension/dbus/application-server-glue.h: extension/dbus/application-interface.xml
c596be6d145df956e779f427dde5aabc8559dd6cglimmer dbus-binding-tool --mode=glib-server --output=$@ --prefix=application_interface $^
c596be6d145df956e779f427dde5aabc8559dd6cglimmer
c596be6d145df956e779f427dde5aabc8559dd6cglimmerextension/dbus/document-server-glue.h: extension/dbus/document-interface.xml
c596be6d145df956e779f427dde5aabc8559dd6cglimmer dbus-binding-tool --mode=glib-server --output=$@ --prefix=document_interface $^
c596be6d145df956e779f427dde5aabc8559dd6cglimmer
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmerextension/dbus/document-client-glue.h: extension/dbus/document-interface.xml
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer dbus-binding-tool --mode=glib-client --output=$@ --prefix=document_interface $^
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer#extension/dbus/wrapper/libinkdbus.so.1.0: extension/dbus/wrapper/inkscape-dbus-wrapper.c extension/dbus/wrapper/inkscape-dbus-wrapper.h extension/dbus/document-interface.xml
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer# gcc -fPIC -c extension/dbus/wrapper/inkscape-dbus-wrapper.c -o extension/dbus/wrapper/inkscape-dbus-wrapper.o $(shell pkg-config --cflags --libs glib-2.0 gobject-2.0 dbus-glib-1)
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer# ld -shared -soname libinkdbus.so.1 -o extension/dbus/wrapper/libinkdbus.so.1.0 -lc extension/dbus/wrapper/inkscape-dbus-wrapper.o
b90b32f28f16528d780c21a8c59f8f44dca159fdglimmer
c596be6d145df956e779f427dde5aabc8559dd6cglimmer# Dbus service file
c596be6d145df956e779f427dde5aabc8559dd6cglimmerservicedir = "/usr/share/dbus-1/services"
c596be6d145df956e779f427dde5aabc8559dd6cglimmerservice_in_files = extension/dbus/org.inkscape.service.in
c596be6d145df956e779f427dde5aabc8559dd6cglimmerservice_DATA = $(service_in_files:.service.in=.service)
c596be6d145df956e779f427dde5aabc8559dd6cglimmer
c596be6d145df956e779f427dde5aabc8559dd6cglimmer# Rule to make the service file with bindir expanded
c596be6d145df956e779f427dde5aabc8559dd6cglimmer$(service_DATA): $(service_in_files) Makefile
6ef14212afe96cfd4b72906aed44880b157f9ab1glimmer @sed -e "s|bindir|$(prefix)|" $<> $@
c596be6d145df956e779f427dde5aabc8559dd6cglimmer