summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2010-11-26 15:44:43 +0000
committerhallgren <hallgren@chalmers.se>2010-11-26 15:44:43 +0000
commit4c6b772934d070b263616db9c019b443bd5321aa (patch)
tree7b91950afa636385eeb83637753c9c9388e26368
parent72d2d9b204568b3683c29dea0ae794d3a524f2ee (diff)
Adding rules for pgf-http to main gf.cabal file
pgf-http is now part of the standard GF build & install.
-rw-r--r--gf.cabal34
1 files changed, 32 insertions, 2 deletions
diff --git a/gf.cabal b/gf.cabal
index 43b3939d1..14af50bed 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -1,6 +1,6 @@
name: gf
version: 3.1.6
-cabal-version: >= 1.2
+cabal-version: >= 1.8
build-type: Custom
license: GPL
license-file: LICENSE
@@ -19,7 +19,9 @@ library
array,
containers,
bytestring,
- random
+ random,
+ pretty,
+ mtl
ghc-options: -O2
hs-source-dirs: src/compiler src/runtime/haskell
extensions:
@@ -157,3 +159,31 @@ executable gf
other-modules: GF.System.UseSignal
else
other-modules: GF.System.NoSignal
+
+
+executable pgf-http
+ hs-source-dirs: src/server
+ main-is: pgf-http.hs
+ other-modules: PGFService FastCGIUtils Cache URLEncoding
+ RunHTTP ServeStaticFile
+ ghc-options: -threaded
+
+ build-depends: base >=4.2 && <5,
+ old-time,
+ directory,
+ filepath,
+ containers,
+ process,
+ gf,
+ cgi >= 3001.1.8.0,
+ httpd-shed,
+ network,
+ json >= 0.3.3,
+ utf8-string >= 0.3.1.1,
+ bytestring,
+ pretty,
+ random
+ if os(windows)
+ ghc-options: -optl-mwindows
+ else
+ build-depends: unix