backends should work now (but untested)

This commit is contained in:
Dennis Frieberg 2020-09-23 20:48:03 +02:00
parent e74ab26b44
commit 04d9f063d4
6 changed files with 113 additions and 11 deletions

View file

@ -29,7 +29,7 @@ flag cgi
default: False
flag fast-cgi
description: Build with fastcgi support
description: Build with fastcgi support -- this depends on the fcgi c library
manual: True
default: False
@ -59,6 +59,7 @@ executable tickLeisteServer
, base >=4.7 && <5
, bytestring
, containers
, http-types
, text
, tickLeiste
, tickLeiste-aeson
@ -68,8 +69,25 @@ executable tickLeisteServer
, websockets
if flag(http)
build-depends:
http-types
, warp
warp
if flag(https)
build-depends:
warp
, warp-tls
if flag(fast-cgi)
build-depends:
wai-handler-fastcgi
if flag(cgi)
build-depends:
wai-extra
if flag(http)
cpp-options: -DHTTP_SUPPORT
if flag(https)
cpp-options: -DHTTPS_SUPPORT
if flag(fast-cgi)
cpp-options: -DFASTCGI_SUPPORT
if flag(cgi)
cpp-options: -DCGI_SUPPORT
default-language: Haskell2010
test-suite tickLeisteServer-test
@ -87,6 +105,7 @@ test-suite tickLeisteServer-test
, base >=4.7 && <5
, bytestring
, containers
, http-types
, text
, tickLeiste
, tickLeiste-aeson
@ -97,6 +116,15 @@ test-suite tickLeisteServer-test
, websockets
if flag(http)
build-depends:
http-types
, warp
warp
if flag(https)
build-depends:
warp
, warp-tls
if flag(fast-cgi)
build-depends:
wai-handler-fastcgi
if flag(cgi)
build-depends:
wai-extra
default-language: Haskell2010