summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-12-24 11:40:37 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-12-24 11:40:37 +0100
commit6a99b474a40e139e3b916ed703f2d105df7f8dd6 (patch)
tree3c5021bd0157501679b3f0bcd06c07cecaaec484 /xmobar.cabal
parentdaa7eda838701949997934fd7925422b572db243 (diff)
parentb0624e2f8b9dbc5f6614de1b5d937b279605bd39 (diff)
downloadxmobar-6a99b474a40e139e3b916ed703f2d105df7f8dd6.tar.gz
xmobar-6a99b474a40e139e3b916ed703f2d105df7f8dd6.tar.bz2
Merge branch 'master' of https://github.com/lomereiter/xmobar into mpris
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