forked from klauspost/reedsolomon
-
Notifications
You must be signed in to change notification settings - Fork 3
/
reedsolomon.cabal
269 lines (251 loc) · 9.28 KB
/
reedsolomon.cabal
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
Name: reedsolomon
Version: 999
Synopsis: Reed-Solomon Erasure Coding in Haskell
Description: Please see README.md
Homepage: https://github.com/NicolasT/reedsolomon
Bug-Reports: https://github.com/NicolasT/reedsolomon/issues
License: MIT
License-File: LICENSE
Author: Nicolas Trangez
Maintainer: [email protected]
Copyright:
(c) 2015, 2016, Nicolas Trangez
(c) 2015, Klaus Post
(c) 2015, Backblaze
Category: Data
Build-Type: Custom
Extra-Source-Files: README.md
, examples/README.md
, stack.yaml
, build-tools/ar-wrapper
, build-tools/ghc-wrapper
, cbits/configure.ac
, cbits/Makefile.am
, cbits/m4/ax_append_compile_flags.m4
, cbits/m4/ax_append_flag.m4
, cbits/m4/ax_check_compile_flag.m4
, cbits/m4/ax_gcc_func_attribute.m4
, cbits/m4/ax_require_defined.m4
, cbits/reedsolomon.c
, cbits/reedsolomon.h
, cbits/reedsolomon_dispatch.c
, cbits/malloc.c
, cbits/reedsolomon-gal-mul-stdio.c
, cbits/reedsolomon-gal-mul-stdio-quickcheck.hs
, cbits/compare-isa.sh
, cbits/aclocal.m4
, cbits/ar-lib
, cbits/compile
, cbits/config.guess
, cbits/config.h.in
, cbits/config.sub
, cbits/configure
, cbits/depcomp
, cbits/install-sh
, cbits/Makefile.in
, cbits/missing
Cabal-Version: >=1.10
Flag SIMD
Description: Enable SIMD Galois field calculation routines
Default: True
Manual: True
Flag LLVM
Description: Enable LLVM compilation
Default: True
Manual: True
Flag examples
Description: Build example binaries
Default: False
Manual: True
Library
Hs-Source-Dirs: src
Exposed-Modules: Data.ReedSolomon
, Data.ReedSolomon.BuildInfo
, Data.Vector.Storable.ByteString
Other-Modules: Data.ReedSolomon.Backend
, Data.ReedSolomon.Galois
, Data.ReedSolomon.Galois.GenTables
, Data.ReedSolomon.Matrix
, Data.Vector.Generic.Compat
, Data.Vector.Generic.Exceptions
, Data.Vector.Generic.Lifted
, Data.Vector.Generic.Sized
Build-Depends: base >= 4.7 && < 4.10
, vector >= 0.10 && < 0.12
, loop >= 0.2 && < 0.4
, primitive >= 0.6 && < 0.7
, mtl >= 2.1 && < 2.3
, exceptions >= 0.8 && < 0.9
, bytestring >= 0.10 && < 0.11
, profunctors >= 4.4 && < 5.3
, gitrev >= 1.0 && < 1.3
Default-Language: Haskell2010
Ghc-Options: -Wall -Odph
if impl(ghc >= 7.10)
Ghc-Options: -g
if impl(ghc >= 8.0)
Ghc-Options: -fno-warn-redundant-constraints
Ghc-Prof-Options: -fprof-auto
if !flag(SIMD)
Other-Modules: Data.ReedSolomon.Galois.NoAsm
if flag(SIMD)
Other-Modules: Data.ReedSolomon.Galois.SIMD
Cpp-Options: -DHAVE_SIMD=1
if flag(LLVM)
Ghc-Options: -fllvm
Cpp-Options: -DHAVE_LLVM=1
Executable reedsolomon-simple-encoder
Hs-Source-Dirs: examples
Main-Is: simple-encoder.lhs
Ghc-Options: -Wall -threaded -rtsopts -with-rtsopts=-N
-- `Build-Depends` goes into the conditional block so Cabal calculates
-- dependencies correctly, even though `Buildable` is set to `False`.
-- See https://github.com/haskell/cabal/issues/1725#issuecomment-123783734
if !os(windows) && flag(examples)
Build-Depends: base
, bytestring
, vector
, optparse-applicative >= 0.11 && < 0.14
, filepath >= 1.3 && < 1.5
, bytestring-mmap >= 0.2 && < 0.3
, reedsolomon
else
Buildable: False
Default-Language: Haskell2010
Executable reedsolomon-simple-decoder
Hs-Source-Dirs: examples
Main-Is: simple-decoder.lhs
Ghc-Options: -Wall -threaded -rtsopts -with-rtsopts=-N
if !os(windows) && flag(examples)
Build-Depends: base
, bytestring
, vector
, optparse-applicative >= 0.11 && < 0.14
, filepath >= 1.3 && < 1.5
, bytestring-mmap >= 0.2 && < 0.3
, reedsolomon
else
Buildable: False
Default-Language: Haskell2010
Executable reedsolomon-simple-bench
Hs-Source-Dirs: examples
Main-Is: simple-bench.hs
Ghc-Options: -rtsopts -Wall -Odph
if impl(ghc >= 7.10)
Ghc-Options: -g
if flag(LLVM)
Ghc-Options: -fllvm
if flag(examples)
Build-Depends: base
, vector
, random >= 1.1 && < 1.2
, criterion >= 1.1 && < 1.2
, statistics >= 0.13 && < 0.14
, reedsolomon
else
Buildable: False
Default-Language: Haskell2010
Executable reedsolomon-profiling
Hs-Source-Dirs: bench
Main-Is: profiling.hs
Ghc-Options: -rtsopts -Wall -Odph
if impl(ghc >= 7.10)
Ghc-Options: -g
if flag(LLVM)
Ghc-Options: -fllvm
if flag(examples)
Build-Depends: base
, vector
, deepseq >= 1.3 && < 1.5
, random >= 1.1 && < 1.2
, optparse-applicative >= 0.11 && < 0.14
, clock >= 0.4 && < 0.8
, reedsolomon
else
Buildable: False
Default-Language: Haskell2010
Test-Suite reedsolomon-test
Type: exitcode-stdio-1.0
Hs-Source-Dirs: test
, src
Main-Is: Main.hs
Other-Modules: Galois
, Matrix
, ReedSolomon
, Vector
, Data.ReedSolomon
, Data.ReedSolomon.Backend
, Data.ReedSolomon.Galois
, Data.ReedSolomon.Galois.GenTables
, Data.ReedSolomon.Galois.NoAsm
, Data.ReedSolomon.Matrix
, Data.Vector.Generic.Compat
, Data.Vector.Generic.Exceptions
, Data.Vector.Generic.Lifted
, Data.Vector.Generic.Sized
, Data.Vector.Storable.ByteString
Build-Depends: base
, vector
, loop
, primitive
, mtl
, exceptions
, bytestring
, profunctors
, tasty >= 0.10 && < 0.12
, tasty-hunit > 0.9 && < 0.10
, tasty-quickcheck >= 0.8 && < 0.9
, tasty-ant-xml >= 1.0 && < 1.1
, QuickCheck >= 2.7 && < 2.10
, random >= 1.1 && < 1.2
, reedsolomon
Default-Language: Haskell2010
Ghc-Options: -threaded -rtsopts -with-rtsopts=-N -Wall -Odph
if impl(ghc >= 7.10)
Ghc-Options: -g
if impl(ghc >= 8.0)
Ghc-Options: -fno-warn-redundant-constraints
if flag(LLVM)
Ghc-Options: -fllvm
Ghc-Prof-Options: -fprof-auto
if flag(SIMD)
CPP-Options: -DHAVE_SIMD=1
Other-Modules: Data.ReedSolomon.Galois.SIMD
Benchmark reedsolomon-bench
Type: exitcode-stdio-1.0
Hs-Source-Dirs: bench
, src
Main-Is: Main.hs
Other-Modules: Data.ReedSolomon
, Data.ReedSolomon.Backend
, Data.ReedSolomon.Galois
, Data.ReedSolomon.Galois.GenTables
, Data.ReedSolomon.Galois.NoAsm
, Data.ReedSolomon.Matrix
, Data.Vector.Generic.Compat
, Data.Vector.Generic.Exceptions
, Data.Vector.Generic.Lifted
, Data.Vector.Generic.Sized
Build-Depends: base
, mtl
, vector
, loop
, primitive
, exceptions
, criterion >= 1.1 && < 1.2
, reedsolomon
Default-Language: Haskell2010
Ghc-Options: -rtsopts -Wall -Odph
if impl(ghc >= 7.10)
Ghc-Options: -g
if impl(ghc >= 8.0)
Ghc-Options: -fno-warn-redundant-constraints
if flag(LLVM)
Ghc-Options: -fllvm
Ghc-Prof-Options: -fprof-auto
if flag(SIMD)
CPP-Options: -DHAVE_SIMD=1
Other-Modules: Data.ReedSolomon.Galois.SIMD
Source-Repository head
Type: git
Location: https://github.com/NicolasT/reedsolomon.git