gf-server.cabal: flag to include C run-time support in the FastCGI PGF service

This commit is contained in:
hallgren
2014-01-31 16:11:41 +00:00
parent e6ab8c4aa4
commit dbd68b987e

View File

@@ -16,6 +16,10 @@ flag http
Description: Build pgf-http (deprecated, replaced by gf -server)
Default: False
flag c-runtime
Description: Include functionality from the C run-time library (which must be installed already)
Default: False
Library
exposed-modules: PGFService FastCGIUtils ServeStaticFile RunHTTP
other-modules: Cache URLEncoding Fold
@@ -27,7 +31,7 @@ Library
filepath,
containers,
process,
gf >= 3.1,
gf >= 3.5.12,
cgi >= 3001.1.7.3,
httpd-shed,
mtl,
@@ -42,6 +46,9 @@ Library
else
build-depends: unix
if flag(c-runtime)
cpp-options: -DC_RUNTIME
executable pgf-http
main-is: pgf-http.hs
Hs-source-dirs: exec