aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-06-27 16:45:26 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-06-27 16:45:26 +0100
commit65ab8e5387aa25f86c868c243a90b4b5174b6532 (patch)
treec9c26afacde01419acac529a1fcb2cf4bcfb0b3f /Makefile.am
parente9f91cffa10b6d00743674faf516dff8e3e13311 (diff)
downloadayatana-indicator-power-65ab8e5387aa25f86c868c243a90b4b5174b6532.tar.gz
ayatana-indicator-power-65ab8e5387aa25f86c868c243a90b4b5174b6532.tar.bz2
ayatana-indicator-power-65ab8e5387aa25f86c868c243a90b4b5174b6532.zip
Implement power dbus service interface
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index b45f92d..2812ec6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,8 @@ libexec_PROGRAMS = indicator-power-service
powerlibdir = $(INDICATORDIR)
powerlib_LTLIBRARIES = libpower.la
libpower_la_SOURCES = \
+ src/dbus-shared-names.h \
+ src/gen-power-service.xml.h \
src/indicator-power.c
libpower_la_CFLAGS = \
$(INDICATOR_CFLAGS) \
@@ -39,6 +41,9 @@ libpower_la_LDFLAGS = \
################
indicator_power_service_SOURCES = \
+ src/gen-power-service.xml.c \
+ src/power-service-dbus.h \
+ src/power-service-dbus.c \
src/power-service.c
indicator_power_service_CFLAGS = \
$(POWERSERVICE_CFLAGS) \
@@ -48,6 +53,21 @@ indicator_power_service_CFLAGS = \
indicator_power_service_LDADD = \
$(POWERSERVICE_LIBS)
+src/gen-%.xml.c: src/%.xml
+ @echo "Building $@ from $<"
+ @echo "const char * _$(subst -,_,$(subst .,_,$(notdir $(basename $<)))) = " > $@
+ @sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
+ @echo ";" >> $@
+
+src/gen-%.xml.h: src/%.xml
+ @echo "Building $@ from $<"
+ @echo "extern const char * _$(subst -,_,$(subst .,_,$(notdir $(basename $<))));" > $@
+
+BUILT_SOURCES = \
+ src/gen-power-service.xml.c \
+ src/gen-power-service.xml.h
+
+
############################################################
EXTRA_DIST = autogen.sh