]> gitweb.michael.orlitzky.com - spline3.git/blob - spline3.cabal
Switch to Tasty for testing.
[spline3.git] / spline3.cabal
1 name: spline3
2 version: 0.0
3 cabal-version: >= 1.8
4 author: Michael Orlitzky
5 maintainer: Michael Orlitzky <michael@orlitzky.com>
6 license: GPL-3
7 license-file: doc/LICENSE
8 homepage: http://michael.orlitzky.com/code/spline3.php
9 bug-reports: mailto:michael@orlitzky.com
10 category: Math
11 synopsis:
12 A parallel implementation of the Sorokina/Zeilfelder spline scheme.
13 description:
14 Interpolate volumetric data according to "Local quasi-interpolation
15 by cubic C^1 splines on type-6 tetrahedral partitions." The defaults
16 are tailored to the MRI data contained in data/mri.bin from the
17 Stanford volume data archive at http://graphics.stanford.edu/data/voldata/.
18 build-type: Simple
19
20 flag HPC
21 description: Build with Haskell Program Coverage (HPC) support
22 default: False
23
24 flag LLVM
25 description: Build with LLVM
26 default: False
27
28
29 executable spline3
30 build-depends:
31 base < 5,
32 cmdargs >= 0.10,
33 filepath >= 1,
34 MissingH >= 1,
35 repa >= 3.3,
36 repa-algorithms >= 3.3,
37 repa-io >= 3.3,
38 vector >= 0.10,
39 -- Additional test dependencies.
40 tasty >= 0.8,
41 tasty-hunit >= 0.8,
42 tasty-quickcheck >= 0.8.1
43
44
45 main-is:
46 Main.hs
47
48 hs-source-dirs:
49 src/
50
51 ghc-options:
52 -Wall
53 -fwarn-hi-shadowing
54 -fwarn-missing-signatures
55 -fwarn-name-shadowing
56 -fwarn-orphans
57 -fwarn-type-defaults
58 -fwarn-tabs
59 -fwarn-incomplete-record-updates
60 -fwarn-monomorphism-restriction
61 -fwarn-unused-do-bind
62 -funbox-strict-fields
63 -fexcess-precision
64 -fno-spec-constr-count
65 -rtsopts
66 -threaded
67
68 if flag(llvm)
69 ghc-options:
70 -fllvm
71 -optlo-O3
72 -optlc-O3
73 else
74 ghc-options:
75 -O2
76 -optc-O3
77 -optc-march=native
78
79 if flag(hpc)
80 ghc-options:
81 -fhpc
82
83 ghc-prof-options:
84 -prof
85 -auto-all
86 -caf-all
87
88
89 test-suite doctests
90 type: exitcode-stdio-1.0
91 hs-source-dirs: test
92 main-is: Doctests.hs
93 build-depends:
94 base < 5,
95 -- Additional test dependencies.
96 doctest >= 0.9
97
98 -- It's not entirely clear to me why I have to reproduce all of this.
99 ghc-options:
100 -rtsopts
101 -threaded
102 -funbox-strict-fields
103 -fexcess-precision
104 -fno-spec-constr-count
105
106 if flag(llvm)
107 ghc-options:
108 -fllvm
109 -optlo-O3
110 -optlc-O3
111 else
112 ghc-options:
113 -O2
114 -optc-O3
115 -optc-march=native
116
117
118 test-suite testsuite
119 type: exitcode-stdio-1.0
120 hs-source-dirs: src test
121 main-is: TestSuite.hs
122 build-depends:
123 base < 5,
124 cmdargs >= 0.10,
125 filepath >= 1,
126 MissingH >= 1,
127 repa >= 3.3,
128 repa-algorithms >= 3.3,
129 repa-io >= 3.3,
130 vector >= 0.10,
131 -- Additional test dependencies.
132 tasty >= 0.8,
133 tasty-hunit >= 0.8,
134 tasty-quickcheck >= 0.8.1
135
136 -- It's not entirely clear to me why I have to reproduce all of this.
137 ghc-options:
138 -rtsopts
139 -threaded
140 -funbox-strict-fields
141 -fexcess-precision
142 -fno-spec-constr-count
143
144 if flag(llvm)
145 ghc-options:
146 -fllvm
147 -optlo-O3
148 -optlc-O3
149 else
150 ghc-options:
151 -O2
152 -optc-O3
153 -optc-march=native
154
155
156 source-repository head
157 type: git
158 location: http://michael.orlitzky.com/git/spline3.git
159 branch: master