summaryrefslogtreecommitdiff
path: root/bustle.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'bustle.cabal')
-rw-r--r--bustle.cabal27
1 files changed, 21 insertions, 6 deletions
diff --git a/bustle.cabal b/bustle.cabal
index 4b68e74..3d3db16 100644
--- a/bustle.cabal
+++ b/bustle.cabal
@@ -65,6 +65,10 @@ Source-Repository head
Type: git
Location: git://anongit.freedesktop.org/bustle
+Flag hgettext
+ Description: Enable translations. Since there are no translations this is currently rather pointless.
+ Default: True
+
Flag InteractiveTests
Description: Build interactive test programs
Default: False
@@ -117,14 +121,20 @@ Executable bustle
, glib
, gio
, gtk3
- , hgettext >= 0.1.5
, mtl >= 2.2.1
, pango
, pcap
, process
- , setlocale
, text
, time
+ if flag(hgettext)
+ Build-Depends: hgettext >= 0.1.5
+ , setlocale
+ hs-source-dirs: .
+ , src-hgettext
+ else
+ hs-source-dirs: .
+ , src-no-hgettext
Executable test-monitor
if flag(InteractiveTests)
@@ -150,13 +160,12 @@ Executable test-monitor
-- 0.13.6 doesn't compile with GCC 5: https://github.com/gtk2hs/gtk2hs/issues/104
, gtk3 >= 0.13.7
, glib
- , hgettext
, mtl
, pango
, pcap
- , setlocale
, text
+
Executable dump-messages
if flag(InteractiveTests)
buildable: True
@@ -219,8 +228,14 @@ Test-suite test-renderer
, mtl
, text
, pango
- , hgettext
- , setlocale
, test-framework
, test-framework-hunit
, HUnit
+ if flag(hgettext)
+ Build-Depends: hgettext >= 0.1.5
+ , setlocale
+ hs-source-dirs: .
+ , src-hgettext
+ else
+ hs-source-dirs: .
+ , src-no-hgettext