diff options
author | Alexander Shabalin <shabalyn.a@gmail.com> | 2014-09-02 21:15:00 +0400 |
---|---|---|
committer | Alexander Shabalin <shabalyn.a@gmail.com> | 2014-09-03 23:55:38 +0400 |
commit | 1d8a1955dd719846e51596b573ee5a6e2bcbcf5a (patch) | |
tree | 6c839290278baf7078c515fda2c7665cd94f2d68 /xmobar.cabal | |
parent | 557f5dbf2863f85c9e39c90d38a28d4870110afe (diff) | |
download | xmobar-1d8a1955dd719846e51596b573ee5a6e2bcbcf5a.tar.gz xmobar-1d8a1955dd719846e51596b573ee5a6e2bcbcf5a.tar.bz2 |
Add .xpm support for <icon> 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
Diffstat (limited to 'xmobar.cabal')
-rw-r--r-- | xmobar.cabal | 9 |
1 files changed, 9 insertions, 0 deletions
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 |