summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-09 03:03:57 +0100
committerjao <jao@gnu.org>2022-09-09 03:03:57 +0100
commitf81a7cfef463907ba4b68cb1352a869960350685 (patch)
treedf12acba69a8a347420d77d0f0e5eb2a71e5f65b /xmobar.cabal
parentcf9c9d37707fb86e99f2402ccad33a1545706564 (diff)
downloadxmobar-f81a7cfef463907ba4b68cb1352a869960350685.tar.gz
xmobar-f81a7cfef463907ba4b68cb1352a869960350685.tar.bz2
cairo: drawing skeleton from an xlib cairo surface
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index 55c27e8..6601a97 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -36,6 +36,10 @@ flag with_xft
description: Use Xft to render text. UTF-8 support included.
default: False
+flag with_cairo
+ description: Use Cairo and Pango to render text, instead of Xft. UTF-8 support included.
+ default: False
+
flag with_inotify
description: inotify support (modern Linux only). Required for the Mail and MBox plugins.
default: False
@@ -141,6 +145,7 @@ library
Xmobar.X11.ColorCache,
Xmobar.X11.Window,
Xmobar.X11.Draw,
+ Xmobar.X11.XlibDraw,
Xmobar.Plugins.Command,
Xmobar.Plugins.BufferedPipeReader,
Xmobar.Plugins.CommandReader,
@@ -230,6 +235,12 @@ library
other-modules: Xmobar.X11.MinXft
cpp-options: -DXFT
+ if flag(with_cairo)
+ build-depends: gi-cairo-render >= 0.1.1 && < 0.2
+ other-modules: Xmobar.X11.CairoSurface, Xmobar.X11.CairoDraw
+ x-c2hs-header: xmobar-gtk2hs.h
+ cpp-options: -DCAIRO
+
if flag(with_inotify) || flag(all_extensions)
build-depends: hinotify >= 0.3 && < 0.5
other-modules: Xmobar.Plugins.Mail, Xmobar.Plugins.MBox