added flgas for conditional compilation of available backends

This commit is contained in:
Dennis Frieberg 2020-09-23 14:08:27 +02:00
parent e8f2a26741
commit e74ab26b44
2 changed files with 52 additions and 6 deletions

View file

@ -23,6 +23,26 @@ source-repository head
type: git
location: https://github.com/githubuser/tickLeisteServer
flag cgi
description: Build with cgi support
manual: True
default: False
flag fast-cgi
description: Build with fastcgi support
manual: True
default: False
flag http
description: Build with http support
manual: True
default: True
flag https
description: Build with https support
manual: True
default: False
executable tickLeisteServer
main-is: Main.hs
other-modules:
@ -39,15 +59,17 @@ executable tickLeisteServer
, base >=4.7 && <5
, bytestring
, containers
, http-types
, text
, tickLeiste
, tickLeiste-aeson
, uuid
, wai
, wai-websockets
, warp
, websockets
if flag(http)
build-depends:
http-types
, warp
default-language: Haskell2010
test-suite tickLeisteServer-test
@ -65,7 +87,6 @@ test-suite tickLeisteServer-test
, base >=4.7 && <5
, bytestring
, containers
, http-types
, text
, tickLeiste
, tickLeiste-aeson
@ -73,6 +94,9 @@ test-suite tickLeisteServer-test
, uuid
, wai
, wai-websockets
, warp
, websockets
if flag(http)
build-depends:
http-types
, warp
default-language: Haskell2010