summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 3a1f7866d..862d9f9a5 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -46,6 +46,9 @@ Flag Pairing
Flag XMPP
Description: Enable notifications using XMPP
+Flag Adns
+ Description: Enable the ADNS library for DNS lookup
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
@@ -98,6 +101,10 @@ Executable git-annex
Build-Depends: network-protocol-xmpp
CPP-Options: -DWITH_XMPP
+ if flag(XMPP) && flag(Assistant) && flag(Adns)
+ Build-Depends: hsdns
+ CPP-Options: -DWITH_ADNS
+
Test-Suite test
Type: exitcode-stdio-1.0
Main-Is: test.hs