diff options
| author | Ted Gould <ted@gould.cx> | 2011-01-10 11:52:43 -0600 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2011-01-10 11:52:43 -0600 |
| commit | 6a01298786045f1e319be21bba6c58a25bd39ddd (patch) | |
| tree | a29322db067435c7728444d0328fd0d93a5db930 /libindicator/Makefile.am | |
| parent | 356af1c196e3416444a14380eb5e25e999feb56d (diff) | |
| parent | f8bea0d6cd9b82ad8708652efbc29d3787e9d41b (diff) | |
| download | libayatana-indicator-6a01298786045f1e319be21bba6c58a25bd39ddd.tar.gz libayatana-indicator-6a01298786045f1e319be21bba6c58a25bd39ddd.tar.bz2 libayatana-indicator-6a01298786045f1e319be21bba6c58a25bd39ddd.zip | |
* Upstream Merge:
* GDBus Port
* autogen.sh
* debian/control: Migrating library versions from 1 to 2
Diffstat (limited to 'libindicator/Makefile.am')
| -rw-r--r-- | libindicator/Makefile.am | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index b6239e6..5c70345 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -31,6 +31,8 @@ libindicatorinclude_HEADERS = \ libindicator_la_SOURCES = \ $(indicator_headers) \ dbus-shared.h \ + gen-indicator-service.xml.h \ + gen-indicator-service.xml.c \ indicator-object.c \ indicator-object-enum-types.c \ indicator-desktop-shortcuts.c \ @@ -49,7 +51,7 @@ libindicator_la_LIBADD = \ $(LIBINDICATOR_LIBS) libindicator_la_LDFLAGS = \ - -version-info 1:0:0 \ + -version-info 2:0:0 \ -no-undefined \ -export-symbols-regex "^[^_].*" @@ -100,23 +102,19 @@ CLEANFILES += \ DBUS_SPECS = \ indicator-service.xml -%-client.h: %.xml - dbus-binding-tool \ - --prefix=_$(subst -,_,$(basename $(notdir $<)))_client \ - --mode=glib-client \ - --output=$@ \ - $< +gen-%.xml.h: %.xml + @echo "Building $@ from $<" + @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $<)));" > $@ -%-server.h: %.xml - dbus-binding-tool \ - --prefix=_$(subst -,_,$(basename $(notdir $<)))_server \ - --mode=glib-server \ - --output=$@ \ - $< +gen-%.xml.c: %.xml + @echo "Building $@ from $<" + @echo "const char * _$(subst -,_,$(subst .,_,$(basename $<))) = " > $@ + @sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@ + @echo ";" >> $@ BUILT_SOURCES += \ - $(DBUS_SPECS:.xml=-client.h) \ - $(DBUS_SPECS:.xml=-server.h) + gen-indicator-service.xml.h \ + gen-indicator-service.xml.c CLEANFILES += $(BUILT_SOURCES) |
