forked from GitHub/gf-core
Adding rules for pgf-http to main gf.cabal file
pgf-http is now part of the standard GF build & install.
This commit is contained in:
34
gf.cabal
34
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
|
||||
|
||||
Reference in New Issue
Block a user