summaryrefslogtreecommitdiff
path: root/gf.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'gf.cabal')
-rw-r--r--gf.cabal8
1 files changed, 8 insertions, 0 deletions
diff --git a/gf.cabal b/gf.cabal
index acd1ac2e3..6a5a27441 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -19,6 +19,10 @@ flag interrupt
Description: Enable Ctrl+Break in the shell
Default: True
+flag server
+ Description: Include --server mode
+ Default: True
+
library
build-depends: base >= 4.2 && <5,
array,
@@ -82,6 +86,10 @@ executable gf
pretty,
mtl,
haskeline
+ if flag(server)
+ build-depends: httpd-shed, network, silently, utf8-string
+ cpp-options: -DSERVER_MODE
+ other-modules: GFServer
build-tools: happy, alex
if os(windows)
build-depends: Win32