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
26
package.yaml
26
package.yaml
|
@ -19,6 +19,24 @@ extra-source-files:
|
||||||
# common to point users to the README.md file.
|
# common to point users to the README.md file.
|
||||||
description: Please see the README on GitHub at <https://github.com/githubuser/tickLeisteServer#readme>
|
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:
|
dependencies:
|
||||||
- base >= 4.7 && < 5
|
- base >= 4.7 && < 5
|
||||||
- tickLeiste
|
- tickLeiste
|
||||||
|
@ -31,8 +49,12 @@ dependencies:
|
||||||
- containers
|
- containers
|
||||||
- wai
|
- wai
|
||||||
- wai-websockets
|
- wai-websockets
|
||||||
- http-types
|
|
||||||
- warp
|
when:
|
||||||
|
- condition: flag(http)
|
||||||
|
dependencies:
|
||||||
|
- http-types
|
||||||
|
- warp
|
||||||
|
|
||||||
build-tools:
|
build-tools:
|
||||||
- cpphs
|
- cpphs
|
||||||
|
|
|
@ -23,6 +23,26 @@ source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/githubuser/tickLeisteServer
|
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
|
executable tickLeisteServer
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
other-modules:
|
other-modules:
|
||||||
|
@ -39,15 +59,17 @@ executable tickLeisteServer
|
||||||
, base >=4.7 && <5
|
, base >=4.7 && <5
|
||||||
, bytestring
|
, bytestring
|
||||||
, containers
|
, containers
|
||||||
, http-types
|
|
||||||
, text
|
, text
|
||||||
, tickLeiste
|
, tickLeiste
|
||||||
, tickLeiste-aeson
|
, tickLeiste-aeson
|
||||||
, uuid
|
, uuid
|
||||||
, wai
|
, wai
|
||||||
, wai-websockets
|
, wai-websockets
|
||||||
, warp
|
|
||||||
, websockets
|
, websockets
|
||||||
|
if flag(http)
|
||||||
|
build-depends:
|
||||||
|
http-types
|
||||||
|
, warp
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
test-suite tickLeisteServer-test
|
test-suite tickLeisteServer-test
|
||||||
|
@ -65,7 +87,6 @@ test-suite tickLeisteServer-test
|
||||||
, base >=4.7 && <5
|
, base >=4.7 && <5
|
||||||
, bytestring
|
, bytestring
|
||||||
, containers
|
, containers
|
||||||
, http-types
|
|
||||||
, text
|
, text
|
||||||
, tickLeiste
|
, tickLeiste
|
||||||
, tickLeiste-aeson
|
, tickLeiste-aeson
|
||||||
|
@ -73,6 +94,9 @@ test-suite tickLeisteServer-test
|
||||||
, uuid
|
, uuid
|
||||||
, wai
|
, wai
|
||||||
, wai-websockets
|
, wai-websockets
|
||||||
, warp
|
|
||||||
, websockets
|
, websockets
|
||||||
|
if flag(http)
|
||||||
|
build-depends:
|
||||||
|
http-types
|
||||||
|
, warp
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue