summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-25 17:37:09 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-25 17:37:09 -0400
commitc46b6bef8820ef3295bce3374c1afb90a6725557 (patch)
tree441fbaa382fac333529b6a77101900fd471cdb41 /git-annex.cabal
parent36feacc1ea527d28bcedc87ae8a537c9990c7bb6 (diff)
Support building without persistent database on for systems that lack TH. This removes support for incremental fsck.
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 5dde20bfe..13c0760e2 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -105,6 +105,10 @@ Flag network-uri
Description: Get Network.URI from the network-uri package
Default: True
+Flag Database
+ Description: Enable building with persistent for database use (disable to build on platforms not supporting TH)
+ Default: True
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends:
@@ -123,7 +127,6 @@ Executable git-annex
monad-control, transformers,
bloomfilter, edit-distance,
resourcet, http-conduit, http-types,
- esqueleto, persistent-sqlite, persistent, persistent-template,
time, old-locale
CC-Options: -Wall
GHC-Options: -Wall -fno-warn-tabs
@@ -262,6 +265,10 @@ Executable git-annex
Build-Depends: torrent (>= 10000.0.0)
CPP-Options: -DWITH_TORRENTPARSER
+ if flag(Database)
+ Build-Depends: esqueleto, persistent-sqlite, persistent, persistent-template
+ CPP-Options: -DWITH_DATABASE
+
if flag(AsciiProgress)
Build-Depends: ascii-progress (<= 0.2.1.2), terminal-size
CPP-Options: -DWITH_ASCIIPROGRESS