aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-09 10:45:38 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-09 10:45:38 -0500
commitd95d729276b77016d07a04f75efdb5ba7b352b96 (patch)
tree24db1424c12b4187ed4de883371b751cc18dc4f6 /src/Makefile.am
parenta782ddbe4fffd016b585b5ef51aabad434550eff (diff)
downloadayatana-indicator-session-d95d729276b77016d07a04f75efdb5ba7b352b96.tar.gz
ayatana-indicator-session-d95d729276b77016d07a04f75efdb5ba7b352b96.tar.bz2
ayatana-indicator-session-d95d729276b77016d07a04f75efdb5ba7b352b96.zip
use gdbus-codegen for the UPower dbus interaction
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c2bf65d..cfe083c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -70,12 +70,16 @@ accounts-service-client.h: $(srcdir)/accounts-service.xml
--output=accounts-service-client.h \
$(srcdir)/accounts-service.xml
-upower-client.h: $(srcdir)/upower.xml
- dbus-binding-tool \
- --prefix=_upower_client \
- --mode=glib-client \
- --output=upower-client.h \
- $(srcdir)/upower.xml
+dbus_upower_sources = \
+ dbus-upower.c \
+ dbus-upower.h
+
+$(dbus_upower_sources): upower.xml
+ gdbus-codegen \
+ --interface-prefix org.freedesktop \
+ --c-namespace IndicatorSession \
+ --generate-c-code dbus-upower \
+ $^
gen-%.xml.c: %.xml
@echo "Building $@ from $<"
@@ -92,6 +96,7 @@ gen-%.xml.h: %.xml
#################
indicator_session_service_SOURCES = \
+ $(dbus_upower_sources) \
lock-helper.c \
lock-helper.h \
session-service.c \
@@ -155,13 +160,13 @@ endif
###############
BUILT_SOURCES = \
+ $(dbus_upower_sources) \
consolekit-manager-client.h \
consolekit-seat-client.h \
consolekit-session-client.h \
display-manager-client.h \
gen-session-dbus.xml.c \
gen-session-dbus.xml.h \
- upower-client.h \
accounts-service-client.h
EXTRA_DIST += \