summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2012-08-10 08:45:57 +0200
committerJochen Keil <jochen.keil@gmail.com>2012-08-10 08:54:33 +0200
commitf51060e267f4f79ed18e4a4ffe93dad2cbeb85f0 (patch)
treeae58dc3c04168cc9c559f491451bed964a0318ae /xmobar.cabal
parent509eee4e98b5a9a1362a87f0d88e317d08b4dec2 (diff)
downloadxmobar-f51060e267f4f79ed18e4a4ffe93dad2cbeb85f0.tar.gz
xmobar-f51060e267f4f79ed18e4a4ffe93dad2cbeb85f0.tar.bz2
Add IPC with DBus as optional build dependency
Not everybody has/wants the DBus library so this can be chosen at compile time.
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index f153cd2..8e5b604 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -65,6 +65,10 @@ flag with_mpris
description: MPRIS v1, v2 support
default: False
+flag with_dbus
+ description: Publish a Service on the Session Bus for controlling xmobar
+ default: False
+
flag with_threaded
description: Use threaded runtime
default: False
@@ -165,3 +169,8 @@ executable xmobar
build-depends: dbus-core >= 0.9.2.1, text >= 0.11.1.5 && < 0.12
other-modules: Plugins.Monitors.Mpris
cpp-options: -DMPRIS
+
+ if flag(with_dbus) || flag(all_extensions)
+ build-depends: dbus >= 0.10
+ other-modules: IPC.DBus
+ cpp-options: -DDBUS