summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 2e312d4c3..11412d19a 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -37,6 +37,9 @@ Flag Dbus
Flag Assistant
Description: Enable git-annex assistant and watch command
+Flag Webapp
+ Description: Enable git-annex webapp
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
@@ -61,11 +64,21 @@ Executable git-annex
if os(linux) && flag(Inotify)
Build-Depends: hinotify
CPP-Options: -DWITH_INOTIFY
+ else
+ if (! os(windows))
+ CPP-Options: -DWITH_KQUEUE
if flag(Dbus)
Build-Depends: dbus
CPP-Options: -DWITH_DBUS
+ if flag(Webapp)
+ Build-Depends: yesod
+ CPP-Options: -DWITH_WEBAPP
+
+ if (os(darwin))
+ CPP-Options: -DOSX
+
Test-Suite test
Type: exitcode-stdio-1.0
Main-Is: test.hs