summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-04-14 14:22:33 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-04-14 14:22:33 -0400
commit626697b459669d934da6339117f6f4abfce16f38 (patch)
tree00b7a7b2bdac27ea572501d8f3b04d612929c4a9 /git-annex.cabal
parent1ca41044e8fab2b2e859a482e2293582c04db81f (diff)
cabal file now autodetects whether S3 support is available.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal10
1 files changed, 9 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 6b1ebb42e..58370daf4 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -26,15 +26,23 @@ Description:
etc that are associated with annexed files but that benefit from full
revision control.
+Flag S3
+ Description: Enable S3 support
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
- pcre-light, extensible-exceptions, dataenc, SHA, process, hS3, json, HTTP,
+ pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP,
base >= 4.5, base < 5, monad-control, transformers-base, lifted-base,
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance
Other-Modules: Utility.Touch
C-Sources: Utility/libdiskfree.c
+ Extensions: CPP
+
+ if flag(S3)
+ Build-Depends: hS3
+ CPP-Options: -DWITH_S3
Test-Suite test
Type: exitcode-stdio-1.0