diff options
Diffstat (limited to 'git-annex.cabal')
-rw-r--r-- | git-annex.cabal | 9 |
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 |