summaryrefslogtreecommitdiff
path: root/fountainhead.cabal
blob: 168122befa51ce137417c922abbf2a2cbe33c91d (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
cabal-version: 3.4
name: fountainhead
version: 0.1.0.0

synopsis: TrueType font parser
description: TrueType font parseer.
bug-reports: https://git.caraus.tech/OSS/fountainhead/issues
homepage: https://git.caraus.tech/OSS/fountainhead
maintainer: belka@caraus.de
author: Eugen Wissner

license-files: LICENSE
license: MPL-2.0

copyright: (c) 2025 Eugen Wissner
category: Graphics

extra-source-files:
  CHANGELOG.md
  README.md

common dependencies
  build-depends:
    base >= 4.16 && < 5,
    bytestring ^>= 0.12.0,
    text ^>= 2.1,
    zlib ^>= 0.7.0
  default-language: GHC2024

library
  import: dependencies
  exposed-modules:
    Graphics.Fountainhead
    Graphics.Fountainhead.Compression
    Graphics.Fountainhead.Dumper
    Graphics.Fountainhead.Metrics
    Graphics.Fountainhead.Parser
    Graphics.Fountainhead.Type
    Graphics.Fountainhead.TrueType
  hs-source-dirs: lib
  build-depends:
    containers ^>= 0.7,
    megaparsec ^>= 9.7,
    time ^>= 1.14,
    transformers ^>= 0.6,
    vector ^>= 0.13.0
  ghc-options: -Wall

executable fountainhead
  import: dependencies
  main-is: Main.hs

  default-extensions:
    NamedFieldPuns
    DuplicateRecordFields
    ExplicitForAll
  build-depends:
    containers,
    fountainhead,
    megaparsec,
    optparse-applicative ^>= 0.18.1,
    parser-combinators,
    vector,
    transformers,
    time
  hs-source-dirs: src
  ghc-options: -Wall

test-suite fountainhead-test
  import: dependencies
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs: test
  other-modules:
    Graphics.Fountainhead.MetricsSpec
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
    fountainhead,
    hspec >= 2.9 && < 3
  build-tool-depends:
    hspec-discover:hspec-discover