aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-28 16:58:19 -0500
committerTed Gould <ted@canonical.com>2009-10-28 16:58:19 -0500
commit606b4939df9845c82d92029abfe8403eb891a26b (patch)
tree3b92f801142f28cdf5c52b70f77177cbcb9ab521
parent15995b7acd5a51c03298c9c671dd82718921ad4e (diff)
downloadlibayatana-indicator-606b4939df9845c82d92029abfe8403eb891a26b.tar.gz
libayatana-indicator-606b4939df9845c82d92029abfe8403eb891a26b.tar.bz2
libayatana-indicator-606b4939df9845c82d92029abfe8403eb891a26b.zip
Building ourselves a little dbus spec
-rw-r--r--.bzrignore2
-rw-r--r--libindicator/Makefile.am30
2 files changed, 32 insertions, 0 deletions
diff --git a/.bzrignore b/.bzrignore
index e81c2cd..0859cc8 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -117,3 +117,5 @@ tests/libdummy-indicator-blank.la
tests/libdummy_indicator_blank_la-dummy-indicator-blank.lo
libindicator-[0-9].[0-9].[0-9].tar.gz
libindicator-[0-9].[0-9].[0-9].tar.gz.asc
+libindicator/indicator-service-client.h
+libindicator/indicator-service-server.h
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am
index db45f3c..6061ad8 100644
--- a/libindicator/Makefile.am
+++ b/libindicator/Makefile.am
@@ -1,3 +1,5 @@
+BUILT_SOURCES =
+CLEANFILES =
EXTRA_DIST = \
indicator.pc.in
@@ -27,3 +29,31 @@ libindicator_la_LIBADD = \
pkgconfig_DATA = indicator.pc
pkgconfigdir = $(libdir)/pkgconfig
+##################################
+# DBus Specs
+##################################
+
+DBUS_SPECS = \
+ indicator-service.xml
+
+%-client.h: %.xml
+ dbus-binding-tool \
+ --prefix=_$(subst -,_,$(<:.xml=))_client \
+ --mode=glib-client \
+ --output=$@ \
+ $<
+
+%-server.h: %.xml
+ dbus-binding-tool \
+ --prefix=_$(subst -,_,$(<:.xml=))_server \
+ --mode=glib-server \
+ --output=$@ \
+ $<
+
+BUILT_SOURCES += \
+ $(DBUS_SPECS:.xml=-client.h) \
+ $(DBUS_SPECS:.xml=-server.h)
+
+CLEANFILES += $(BUILT_SOURCES)
+
+EXTRA_DIST += $(DBUS_SPECS)