summaryrefslogtreecommitdiff
path: root/src/server/gf-server.cabal
blob: c3cadd84f1d968c6915279e2db3733c61fa4b90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: gf-server
version: 1.0
cabal-version: >= 1.2
build-type: Custom
license: GPL
license-file: ../../LICENSE
synopsis: FastCGI Server for Grammatical Framework

flag fastcgi
  Description: Build the fastcgi service (requires the fastcgi package)
  Default:     False

flag content
  Description: Build content service (requires fastcgi and hsql-mysql packages)
  Default:     False

executable pgf-http
  main-is: pgf-http.hs
  Hs-source-dirs: . transfer
  other-modules: PGFService FastCGIUtils Cache URLEncoding
                 RunHTTP ServeStaticFile Fold
  ghc-options: -threaded
  if impl(ghc>=7.0)
    ghc-options: -rtsopts

  build-depends: base >=4.2 && <5,
                 old-time,
                 directory,
                 filepath,
                 containers,
                 process,
                 gf >= 3.1,
                 cgi >= 3001.1.8.0,
                 httpd-shed,
                 network,
                 json >= 0.3.3,
                 utf8-string >= 0.3.1.1,
                 bytestring,
                 pretty,
                 random
  if os(windows)
    ghc-options: -optl-mwindows
  else
    build-depends: unix

executable pgf-service
  main-is: pgf-fcgi.hs
  Hs-source-dirs: . transfer
  other-modules: PGFService FastCGIUtils Cache URLEncoding Fold
  ghc-options: -threaded
  if impl(ghc>=7.0)
    ghc-options: -rtsopts

  if flag(fastcgi)
    build-depends: fastcgi >= 3001.0.2.2
    buildable: True
  else
    buildable: False

  build-depends: base >=4.2 && <5,
                 old-time,
                 directory,
                 filepath,
                 containers,
                 process,
                 gf >= 3.1,
                 cgi >= 3001.1.8.0,
                 network,
                 json >= 0.3.3,
                 utf8-string >= 0.3.1.1,
                 bytestring,
                 pretty,
                 random
  if os(windows)
    ghc-options: -optl-mwindows
  else
    build-depends: unix

executable content-service
  if flag(content)
    build-depends: base >=4.2 && <5,
                   fastcgi >= 3001.0.2.2, hsql-mysql, hsql, old-locale
    buildable: True
  else
    buildable: False

  main-is: ContentService.hs