From e39f66aac6805d832e8a5bc765ba9b385a20cd16 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 15 Sep 2022 15:34:00 +0100 Subject: new flag: with_xrender --- xmobar.cabal | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index a2958ad..3bf1dd6 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -32,6 +32,9 @@ source-repository head location: git://codeberg.org/xmobar/xmobar.git branch: master +flag with_xrender + description: Use XRender for alpha background pseudo-transparency. + flag with_cairo description: Use Cairo and Pango to render anti-aliased text. @@ -224,14 +227,17 @@ library if flag(with_rtsopts) cpp-options: -DRTSOPTS + if flag(with_xrender) + build-depends: X11-xft >= 0.2 + other-modules: Xmobar.X11.XRender + cpp-options: -DXRENDER + if flag(with_cairo) build-depends: cairo >= 0.13, pango >= 0.13, - colour >= 2.3.6, - X11-xft >= 0.2 + colour >= 2.3.6 other-modules: Xmobar.X11.CairoSurface, - Xmobar.X11.CairoDraw, - Xmobar.X11.XRender + Xmobar.X11.CairoDraw cpp-options: -DCAIRO else other-modules: Xmobar.X11.XlibDraw -- cgit v1.2.3