summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-25 21:26:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-25 21:26:13 -0400
commit32d3cffc4cf075d7c20fee8addc556f402e94cd2 (patch)
tree4640fa6618d6c14b652dada4d0423e56ea3a3f95 /git-annex.cabal
parent03979d4d54e7b0ce76fa296e57b9b5e1820ce7b1 (diff)
run yesod, and launch webapp on startup
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