Makefile_insert revision 6ef14212afe96cfd4b72906aed44880b157f9ab1
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico## Makefile.am fragment sourced by src/Makefile.am.
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNicoink_common_sources += \
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico extension/dbus/dbus-init.cpp \
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico extension/dbus/dbus-init.h \
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico extension/dbus/application-interface.cpp \
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico extension/dbus/application-interface.h \
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico extension/dbus/document-interface.cpp \
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico extension/dbus/document-interface.h
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico## Slightly concerned about this.
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNico## Would use += but it has to be set first.
ad7c244f4e0d66d4a8c4e9919aa735ba523239a8JazzyNicoBUILT_SOURCES = \
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix extension/dbus/application-server-glue.h \
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix extension/dbus/document-server-glue.h \
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix extension/dbus/document-client-glue.h
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# extension/dbus/wrapper/libinkdbus.so.1.0 this probably belongs somewhere else
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixextension/dbus/application-server-glue.h: extension/dbus/application-interface.xml
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix dbus-binding-tool --mode=glib-server --output=$@ --prefix=application_interface $^
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixextension/dbus/document-server-glue.h: extension/dbus/document-interface.xml
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix dbus-binding-tool --mode=glib-server --output=$@ --prefix=document_interface $^
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixextension/dbus/document-client-glue.h: extension/dbus/document-interface.xml
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix dbus-binding-tool --mode=glib-client --output=$@ --prefix=document_interface $^
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#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
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# 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)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# ld -shared -soname libinkdbus.so.1 -o extension/dbus/wrapper/libinkdbus.so.1.0 -lc extension/dbus/wrapper/inkscape-dbus-wrapper.o
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Dbus service file
57095d8ba60dfd4d9956b1260b16c58e0320fe9aJazzyNicoservicedir = "/usr/share/dbus-1/services"
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixservice_in_files = extension/dbus/org.inkscape.service.in
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixservice_DATA = $(service_in_files:.service.in=.service)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Rule to make the service file with bindir expanded
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix$(service_DATA): $(service_in_files) Makefile
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix @sed -e "s|bindir|$(prefix)|" $<> $@
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix