summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
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