aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)