From 606b4939df9845c82d92029abfe8403eb891a26b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 28 Oct 2009 16:58:19 -0500 Subject: Building ourselves a little dbus spec --- libindicator/Makefile.am | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'libindicator/Makefile.am') 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) -- cgit v1.2.3 From ba8af8211f01a5c470ac30275e907bc5a26be910 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 29 Oct 2009 09:27:05 -0500 Subject: Putting in some templated objects. --- libindicator/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libindicator/Makefile.am') diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 6061ad8..cce87ca 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -7,7 +7,9 @@ libindicatorincludedir=$(includedir)/libindicator-0.1/libindicator indicator_headers = \ indicator.h \ - indicator-object.h + indicator-object.h \ + indicator-service.h \ + indicator-service-manager.h libindicatorinclude_HEADERS = \ $(indicator_headers) @@ -17,7 +19,9 @@ lib_LTLIBRARIES = \ libindicator_la_SOURCES = \ $(indicator_headers) \ - indicator-object.c + indicator-object.c \ + indicator-service.c \ + indicator-service-manager.c libindicator_la_CFLAGS = \ $(LIBINDICATOR_CFLAGS) \ -- cgit v1.2.3 From 82aaaed9788d56fa2739da70621e56f1e21ec0a8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 29 Oct 2009 16:29:47 -0500 Subject: Adding in some shared strings for finding intefaces and objects. --- libindicator/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'libindicator/Makefile.am') diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index cce87ca..209b787 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -19,6 +19,7 @@ lib_LTLIBRARIES = \ libindicator_la_SOURCES = \ $(indicator_headers) \ + dbus-shared.h \ indicator-object.c \ indicator-service.c \ indicator-service-manager.c -- cgit v1.2.3 From 90446e0f46aec726341a8e178bfa65ddcb057deb Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 2 Nov 2009 10:48:18 -0600 Subject: Fixing up the build rules so that they're directory independent. --- libindicator/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libindicator/Makefile.am') diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index 209b787..5c512cd 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -43,14 +43,14 @@ DBUS_SPECS = \ %-client.h: %.xml dbus-binding-tool \ - --prefix=_$(subst -,_,$(<:.xml=))_client \ + --prefix=_$(subst -,_,$(basename $(notdir $<)))_client \ --mode=glib-client \ --output=$@ \ $< %-server.h: %.xml dbus-binding-tool \ - --prefix=_$(subst -,_,$(<:.xml=))_server \ + --prefix=_$(subst -,_,$(basename $(notdir $<)))_server \ --mode=glib-server \ --output=$@ \ $< -- cgit v1.2.3