tickLeisteServer/package.yaml
2020-09-23 20:48:03 +02:00

106 lines
2.3 KiB
YAML

name: tickLeisteServer
version: 0.1.0.0
github: "githubuser/tickLeisteServer"
license: BSD3
author: "Author name here"
maintainer: "example@example.com"
copyright: "2020 Author name here"
extra-source-files:
- README.md
- ChangeLog.md
# Metadata used when publishing your package
# synopsis: Short description of your package
# category: Web
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# 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 -- this depends on the fcgi c library
manual: true
default: false
cgi:
description: Build with cgi support
manual: true
default: false
dependencies:
- base >= 4.7 && < 5
- tickLeiste
- tickLeiste-aeson
- aeson
- uuid
- text
- websockets
- bytestring
- containers
- wai
- wai-websockets
- http-types
when:
- condition: flag(http)
dependencies:
- warp
- condition: flag(https)
dependencies:
- warp-tls
- warp
- condition: flag(fast-cgi)
dependencies:
- wai-handler-fastcgi
- condition: flag(cgi)
dependencies:
wai-extra
build-tools:
- cpphs
executables:
tickLeisteServer:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -cpp
- -pgmP cpphs
- -optP --cpp
when:
- condition: flag(http)
cpp-options:
- -DHTTP_SUPPORT
- condition: flag(https)
cpp-options:
- -DHTTPS_SUPPORT
- condition: flag(fast-cgi)
cpp-options:
- -DFASTCGI_SUPPORT
- condition: flag(cgi)
cpp-options:
- -DCGI_SUPPORT
tests:
tickLeisteServer-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- tickLeisteServer