]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Ajout : Makefile : %/install/test
[comptalang.git] / cli / hcompta-cli.cabal
1 author: Julien Moutinho <julm+hcompta@autogeree.net>
2 bug-reports: http://doc.autogeree.net/hcompta/bugs
3 build-type: Simple
4 cabal-version: >= 1.8
5 category: Finance
6 -- data-dir: data
7 -- data-files:
8 description: Hcompta command line interface.
9 extra-source-files: Test.hs
10 extra-tmp-files:
11 homepage: http://doc.autogeree.net/hcompta
12 license: GPL
13 license-file: COPYING
14 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
15 name: hcompta-cli
16 stability: experimental
17 synopsis: hcompta
18 tested-with: GHC==7.8.4
19 version: 0.0.0
20
21 source-repository head
22 type: git
23 location: git://git.autogeree.net/hcompta
24
25 Flag dev
26 Description: Turn on development settings.
27 Default: False
28
29 Flag dump
30 Default: False
31 Description: Dump some intermediate files.
32 Manual: True
33
34 Flag library-only
35 Description: Build only library
36 Default: False
37
38 Library
39 ghc-options: -Wall -fno-warn-tabs
40 if flag(dev)
41 cpp-options: -DDEVELOPMENT
42 ghc-options:
43 else
44 ghc-options: -O2
45 if flag(dump)
46 ghc-options: -ddump-simple -ddump-stg -ddump-to-file
47 -- default-language: Haskell2010
48 exposed-modules:
49 Hcompta.CLI
50 Hcompta.CLI.Args
51 Hcompta.CLI.Command
52 Hcompta.CLI.Command.Balance
53 Hcompta.CLI.Command.Print
54 Hcompta.CLI.Context
55 Hcompta.CLI.Format.Ledger
56 Hcompta.CLI.Write
57 build-depends:
58 base >= 4.3 && < 5
59 , ansi-terminal >= 0.4 && < 0.7
60 , containers
61 , hcompta-lib
62 , HUnit
63 , pretty-show
64 -- , safe >= 0.2
65 , text
66 , transformers >= 0.4 && < 0.5
67 -- NOTE: needed for Control.Monad.Trans.Except
68
69 Executable hcompta-cli
70 ghc-options: -Wall -fno-warn-tabs
71 ghc-options: -threaded -rtsopts -with-rtsopts=-N
72 if flag(dev)
73 cpp-options: -DDEVELOPMENT
74 ghc-options:
75 else
76 ghc-options: -O2
77 if flag(library-only)
78 Buildable: False
79 main-is: Hcompta/CLI/Main.hs
80 hs-source-dirs: .
81 build-depends:
82 base >= 4.3 && < 5
83 , ansi-terminal >= 0.4 && < 0.7
84 , containers >= 0.5 && < 0.6
85 -- NOTE: needed for Data.Map.Strict
86 , hcompta-lib
87 , HUnit
88 , pretty-show
89 -- , safe >= 0.2
90 , text
91 , transformers >= 0.4 && < 0.5
92 -- NOTE: needed for Control.Monad.Trans.Except
93
94
95 test-suite Test
96 type: exitcode-stdio-1.0
97 main-is: Main.hs
98 hs-source-dirs: Test
99 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
100 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
101 -- default-language: Haskell2010
102 build-depends:
103 hcompta-cli
104 , base >= 4.3 && < 5
105 , HUnit
106 -- , safe
107 , test-framework
108 , test-framework-hunit