]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Ajout : profilage du code.
[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 extra-source-files:
12 -- i18n/en.msg
13 -- i18n/fr.msg
14 homepage: http://doc.autogeree.net/hcompta
15 license: GPL
16 license-file: COPYING
17 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
18 name: hcompta-cli
19 stability: experimental
20 synopsis: hcompta
21 tested-with: GHC==7.8.4
22 version: 0.0.0
23
24 source-repository head
25 type: git
26 location: git://git.autogeree.net/hcompta
27
28 Flag dev
29 Description: Turn on development settings.
30 Default: False
31
32 Flag dump
33 Default: False
34 Description: Dump some intermediate files.
35 Manual: True
36
37 Flag library-only
38 Description: Build only library.
39 Default: False
40
41 Flag prof
42 Default: False
43 Description: Turn on profiling settings.
44
45 Flag threaded
46 Default: True
47 Description: Enable threads.
48 Manual: True
49
50 Library
51 ghc-options: -Wall -fno-warn-tabs
52 if flag(dev)
53 cpp-options: -DDEVELOPMENT
54 ghc-options:
55 else
56 ghc-options: -O2
57 if flag(dump)
58 ghc-options: -ddump-ds -ddump-simple -ddump-splices -ddump-stg -ddump-to-file
59 if flag(prof)
60 cpp-options: -DPROFILING
61 ghc-options: -fprof-auto
62 -- default-language: Haskell2010
63 exposed-modules:
64 Hcompta.CLI.Args
65 Hcompta.CLI.Command
66 Hcompta.CLI.Command.Balance
67 Hcompta.CLI.Command.GL
68 Hcompta.CLI.Command.Journal
69 Hcompta.CLI.Context
70 Hcompta.CLI.Format.Ledger
71 Hcompta.CLI.Lang
72 Hcompta.CLI.Write
73 build-depends:
74 base >= 4.3 && < 5
75 , ansi-terminal >= 0.4 && < 0.7
76 , bytestring
77 , containers
78 -- , directory
79 , hcompta-lib
80 , HUnit
81 , io-memoize >= 1.1
82 -- NOTE: needed for System.IO.Memoize.once
83 , parsec
84 -- , safe >= 0.2
85 -- , template-haskell
86 , text
87 , transformers >= 0.4 && < 0.5
88 -- NOTE: needed for Control.Monad.Trans.Except
89
90 Executable hcompta-cli
91 ghc-options: -Wall -fno-warn-tabs
92 if flag(threaded)
93 ghc-options: -threaded -rtsopts -with-rtsopts=-N
94 if flag(dev)
95 cpp-options: -DDEVELOPMENT
96 ghc-options:
97 else
98 ghc-options: -O2
99 if flag(prof)
100 cpp-options: -DPROFILING
101 ghc-options: -fprof-auto
102 if flag(library-only)
103 Buildable: False
104 main-is: Hcompta/CLI/Main.hs
105 hs-source-dirs: .
106 build-depends:
107 base >= 4.3 && < 5
108 , ansi-terminal >= 0.4 && < 0.7
109 , bytestring
110 , containers >= 0.5 && < 0.6
111 -- NOTE: needed for Data.Map.Strict
112 -- , directory
113 , hcompta-lib
114 , HUnit
115 , io-memoize >= 1.1
116 -- NOTE: needed for System.IO.Memoize.once
117 , parsec
118 -- , safe >= 0.2
119 -- , template-haskell
120 , text
121 , transformers >= 0.4 && < 0.5
122 -- NOTE: needed for Control.Monad.Trans.Except
123
124
125 test-suite Test
126 type: exitcode-stdio-1.0
127 main-is: Main.hs
128 hs-source-dirs: Test
129 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
130 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
131 -- default-language: Haskell2010
132 build-depends:
133 hcompta-cli
134 , base >= 4.3 && < 5
135 , HUnit
136 -- , safe
137 , test-framework
138 , test-framework-hunit