added flgas for conditional compilation of available backends
This commit is contained in:
parent
e8f2a26741
commit
e74ab26b44
2 changed files with 52 additions and 6 deletions
22
package.yaml
22
package.yaml
|
@ -19,6 +19,24 @@ extra-source-files:
|
|||
# common to point users to the README.md file.
|
||||
description: Please see the README on GitHub at <https://github.com/githubuser/tickLeisteServer#readme>
|
||||
|
||||
flags:
|
||||
http:
|
||||
description: Build with http support
|
||||
manual: true
|
||||
default: true
|
||||
https:
|
||||
description: Build with https support
|
||||
manual: true
|
||||
default: false
|
||||
fast-cgi:
|
||||
description: Build with fastcgi support
|
||||
manual: true
|
||||
default: false
|
||||
cgi:
|
||||
description: Build with cgi support
|
||||
manual: true
|
||||
default: false
|
||||
|
||||
dependencies:
|
||||
- base >= 4.7 && < 5
|
||||
- tickLeiste
|
||||
|
@ -31,6 +49,10 @@ dependencies:
|
|||
- containers
|
||||
- wai
|
||||
- wai-websockets
|
||||
|
||||
when:
|
||||
- condition: flag(http)
|
||||
dependencies:
|
||||
- http-types
|
||||
- warp
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue