summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorArtem Tarasov <lomereiter@gmail.com>2011-12-21 18:37:19 +0400
committerArtem Tarasov <lomereiter@gmail.com>2011-12-21 18:37:19 +0400
commit47f49f08195b2b39333ea667fd4587bebcec0816 (patch)
tree2ac7503abe26147014d41d5260e6790a8c150e22 /xmobar.cabal
parent849c5cfb7544cbbe56dfdc7d450172121e51dff5 (diff)
downloadxmobar-47f49f08195b2b39333ea667fd4587bebcec0816.tar.gz
xmobar-47f49f08195b2b39333ea667fd4587bebcec0816.tar.bz2
MPRIS plugin
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 1f7b4db..ffd2cd7 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -61,6 +61,10 @@ flag with_datezone
description: Enables localized date support
default: False
+flag with_mpris
+ description: MPRIS v1, v2 support
+ default: False
+
executable xmobar
hs-source-dirs: src
main-is: Main.hs
@@ -150,3 +154,8 @@ executable xmobar
build-depends: timezone-olson == 0.1.*, timezone-series == 0.1.*
other-modules: Plugins.DateZone
cpp-options: -DDATEZONE
+
+ if flag(with_mpris) || flag(all_extensions)
+ build-depends: dbus-core >= 0.9.2.1, text >= 0.11.1.5 && < 0.12
+ other-modules: Plugins.Monitors.Mpris
+ cpp-options: -DMPRIS