From 1d8a1955dd719846e51596b573ee5a6e2bcbcf5a Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Tue, 2 Sep 2014 21:15:00 +0400 Subject: Add .xpm support for via libXpm. * Adds a new flag with_xpm to enable compilation with xpm support * Adds a module XPMFile only exporting readXPMFile which almost mirrors Graphics.X11.Xlib.Misc.readBitmapFile * During loadBitmap a file is first tried with readBitmapFile and if it fails with readXPMFile --- xmobar.cabal | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 9e0e509..716366e 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -66,6 +66,10 @@ flag with_dbus description: Publish a service on the session bus for controlling xmobar. default: False +flag with_xpm + description: Enable usage of xpm for icons + default: False + flag with_threaded description: Use threaded runtime. default: False @@ -166,3 +170,8 @@ executable xmobar build-depends: dbus >= 0.10 other-modules: IPC.DBus cpp-options: -DDBUS + + if flag(with_xpm) || flag(all_extensions) + extra-libraries: Xpm + other-modules: XPMFile + cpp-options: -DXPM -- cgit v1.2.3