From 5b753d8c1aa2ce271fb15b7c9aa1af83f8de0d3a Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Sun, 16 Mar 2008 13:11:00 +0100 Subject: add XFT support and make UTF-8 support configurable This patch includes many changes: - moved font and printing functions to XUtil.hs and created an abstraction layer to font management; - ported the core, StdinReader and PipeReader to the new font management system. To enable UTF-8 support configure with the "with_utf8" flag (requires utf8-string): runhaskell Setup.lhs configure --flags darcs-hash:20080316121100-d6583-828134da356b706744b56a9d81203129b0e8e484.gz --- xmobar.cabal | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 7bb54b5..6651a63 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -13,12 +13,20 @@ license-file: LICENSE author: Andrea Rossato maintainer: andrea.rossato@unibz.it cabal-version: >= 1.2 +build-type: Simple + flag small_base description: Choose the new smaller, split-up base package. +flag use_xft + description: Use Xft to render text. UTF-8 support included. + +flag with_utf8 + description: With UTF-8 support. + executable xmobar main-is: Main.hs - other-Modules: Xmobar, Config, Parsers, Commands, HsLocale, Runnable, Plugins + other-Modules: Xmobar, Config, Parsers, Commands, XUtil, Runnable, Plugins ghc-options: -funbox-strict-fields -Wall -optl-Wl,-s -threaded ghc-prof-options: -prof -auto-all if flag(small_base) @@ -26,4 +34,13 @@ executable xmobar else build-depends: base < 3 - build-depends: X11>=1.3.0, mtl, unix, parsec, filepath, stm, utf8-string + + if flag(use_xft) + build-depends: utf8-string, X11-xft >= 0.2 + cpp-options: -DXFT + + if flag(with_utf8) + build-depends: utf8-string + cpp-options: -DUTF8 + + build-depends: X11>=1.3.0, mtl, unix, parsec, filepath, stm -- cgit v1.2.3