summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal9
1 files changed, 8 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 3aad55e1a..7d370d34f 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -59,11 +59,14 @@ Flag Android
Description: Building for Android
Default: False
+Flag TestSuite
+ Description: Embed the test suite into git-annex
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
unix, containers, utf8-string, network (>= 2.0), mtl (>= 2.1.1),
- bytestring, old-locale, time, testpack, HUnit,
+ bytestring, old-locale, time,
extensible-exceptions, dataenc, SHA, process, json,
base (>= 4.5 && < 4.8), monad-control, transformers-base, lifted-base,
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process,
@@ -78,6 +81,10 @@ Executable git-annex
if flag(Production)
GHC-Options: -O2
+ if flag(TestSuite)
+ Build-Depends: testpack, HUnit
+ CPP-Options: -DWITH_TESTSUITE
+
if flag(S3)
Build-Depends: hS3
CPP-Options: -DWITH_S3