mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
If you want the fastcgi server, use cabal install -ffastcgi. This is to avoid problems when you only want to compile pgf-http and the fastcgi library fails to install, which it usually does, since it depends on a C library which is not installed automatically with cabal.
79 lines
1.9 KiB
Plaintext
79 lines
1.9 KiB
Plaintext
name: gf-server
|
|
version: 1.0
|
|
cabal-version: >= 1.2
|
|
build-type: Custom
|
|
license: GPL
|
|
license-file: ../../LICENSE
|
|
synopsis: FastCGI Server for Grammatical Framework
|
|
|
|
flag fastcgi
|
|
Description: Build the fcgi services (requires the fastcgi package)
|
|
Default: False
|
|
|
|
executable pgf-http
|
|
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 >= 3.1,
|
|
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
|
|
|
|
executable pgf-service
|
|
main-is: pgf-fcgi.hs
|
|
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
|
ghc-options: -threaded
|
|
|
|
if flag(fastcgi)
|
|
build-depends: fastcgi >= 3001.0.2.2
|
|
buildable: True
|
|
else
|
|
buildable: False
|
|
|
|
build-depends: base >=4.2 && <5,
|
|
old-time,
|
|
directory,
|
|
filepath,
|
|
containers,
|
|
process,
|
|
gf >= 3.1,
|
|
cgi >= 3001.1.8.0,
|
|
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
|
|
|
|
executable content-service
|
|
if flag(fastcgi)
|
|
build-depends: fastcgi >= 3001.0.2.2
|
|
buildable: True
|
|
else
|
|
buildable: False
|
|
|
|
build-depends: base >=4.2 && <5,
|
|
hsql, hsql-mysql, old-locale
|
|
main-is: ContentService.hs
|