From 1867e6bd88cc3ad60a8473f7223da50de701c855 Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 26 Nov 2010 15:44:43 +0000 Subject: [PATCH] Adding rules for pgf-http to main gf.cabal file pgf-http is now part of the standard GF build & install. --- gf.cabal | 34 ++++++++++++++++++++++++++++++++-- 1 file 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