diff options
author | Ted Gould <ted@gould.cx> | 2010-12-08 15:19:44 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-12-08 15:19:44 -0600 |
commit | 0d8a2c601b50a1d9ce6ccd1140f624c84558cf9d (patch) | |
tree | ba70d1960abc1fbf7892f1f870f47416cf13e3ee /src/Makefile.am | |
parent | 6d73d549745eddea81b38c7effa0f48509fcbb8d (diff) | |
parent | 5b8d8f97aa46c2d56e7c4bbc244dafe378b60e8d (diff) | |
download | libayatana-appindicator-0d8a2c601b50a1d9ce6ccd1140f624c84558cf9d.tar.gz libayatana-appindicator-0d8a2c601b50a1d9ce6ccd1140f624c84558cf9d.tar.bz2 libayatana-appindicator-0d8a2c601b50a1d9ce6ccd1140f624c84558cf9d.zip |
Switching the library over to using GDBus
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 073fc41..a5ea29b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -54,10 +54,6 @@ libappindicatorinclude_HEADERS = \ $(libappindicator_headers) \ $(glib_enum_h) -BUILT_SOURCES += \ - notification-watcher-client.h \ - notification-item-server.h - libappindicator_la_SOURCES = \ $(libappindicator_headers) \ app-indicator-enum-types.c \ @@ -65,7 +61,11 @@ libappindicator_la_SOURCES = \ application-service-marshal.c \ dbus-shared.h \ generate-id.h \ - generate-id.c + generate-id.c \ + gen-notification-item.xml.h \ + gen-notification-item.xml.c \ + gen-notification-watcher.xml.h \ + gen-notification-watcher.xml.c libappindicator_la_LDFLAGS = \ -version-info 1:0:0 \ @@ -99,25 +99,27 @@ DBUS_SPECS = \ notification-item.xml \ notification-watcher.xml -%-client.h: %.xml - dbus-binding-tool \ - --prefix=_$(notdir $(subst -,_,$(<:.xml=)))_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=_$(notdir $(subst -,_,$(<:.xml=)))_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) - -CLEANFILES += $(BUILT_SOURCES) + gen-notification-item.xml.c \ + gen-notification-item.xml.h \ + gen-notification-watcher.xml.c \ + gen-notification-watcher.xml.h + +CLEANFILES += \ + gen-notification-item.xml.c \ + gen-notification-item.xml.h \ + gen-notification-watcher.xml.c \ + gen-notification-watcher.xml.h EXTRA_DIST += $(DBUS_SPECS) |