]> gitweb.michael.orlitzky.com - spline3.git/blob - spline3.cabal
a1be0aa2db1d429856f997cfff92864bb32a926f
[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 synopsis:
7 An implementation of the Sorokina and Zeilfelder
8 trivariate spline scheme on type-6 tetrahedral partitions.
9 build-type: Simple
10
11 flag HPC
12 description: Build with Haskell Program Coverage (HPC) support
13 default: False
14
15 flag LLVM
16 description: Build with LLVM
17 default: False
18
19
20 executable spline3
21 build-depends:
22 base == 4.5.*,
23 filepath == 1.*,
24 repa == 3.2.*,
25 repa-algorithms == 3.2.*,
26 repa-io == 3.2.*,
27 vector == 0.9.*,
28 -- Additional test dependencies.
29 HUnit == 1.2.*,
30 QuickCheck == 2.*,
31 test-framework == 0.6.*,
32 test-framework-hunit == 0.2.*,
33 test-framework-quickcheck2 == 0.2.*
34
35 main-is:
36 Main.hs
37
38 hs-source-dirs:
39 src/
40
41 ghc-options:
42 -Wall
43 -fwarn-hi-shadowing
44 -fwarn-missing-signatures
45 -fwarn-name-shadowing
46 -fwarn-orphans
47 -fwarn-type-defaults
48 -fwarn-tabs
49 -fwarn-incomplete-record-updates
50 -fwarn-monomorphism-restriction
51 -fwarn-unused-do-bind
52 -funbox-strict-fields
53 -fexcess-precision
54 -fno-spec-constr-count
55 -rtsopts
56 -threaded
57
58 if flag(llvm)
59 ghc-options:
60 -fllvm
61 -optlo-O3
62 -optlc-O3
63 else
64 ghc-options:
65 -O2
66 -optc-O3
67 -optc-march=native
68
69 if flag(hpc)
70 ghc-options:
71 -fhpc
72
73 ghc-prof-options:
74 -prof
75 -auto-all
76 -caf-all
77
78
79 test-suite doctests
80 type: exitcode-stdio-1.0
81 hs-source-dirs: test
82 main-is: Doctests.hs
83 build-depends:
84 base == 4.5.*,
85 -- Additional test dependencies.
86 doctest == 0.7.*
87
88 -- It's not entirely clear to me why I have to reproduce all of this.
89 ghc-options:
90 -rtsopts
91 -threaded
92 -funbox-strict-fields
93 -fexcess-precision
94 -fno-spec-constr-count
95
96 if flag(llvm)
97 ghc-options:
98 -fllvm
99 -optlo-O3
100 -optlc-O3
101 else
102 ghc-options:
103 -O2
104 -optc-O3
105 -optc-march=native
106
107
108 test-suite testsuite
109 type: exitcode-stdio-1.0
110 hs-source-dirs: src test
111 main-is: TestSuite.hs
112 build-depends:
113 base == 4.5.*,
114 filepath == 1.*,
115 repa == 3.2.*,
116 repa-algorithms == 3.2.*,
117 repa-io == 3.2.*,
118 vector == 0.9.*,
119 -- Additional test dependencies.
120 HUnit == 1.2.*,
121 QuickCheck == 2.*,
122 test-framework == 0.6.*,
123 test-framework-hunit == 0.2.*,
124 test-framework-quickcheck2 == 0.2.*
125
126 -- It's not entirely clear to me why I have to reproduce all of this.
127 ghc-options:
128 -rtsopts
129 -threaded
130 -funbox-strict-fields
131 -fexcess-precision
132 -fno-spec-constr-count
133
134 if flag(llvm)
135 ghc-options:
136 -fllvm
137 -optlo-O3
138 -optlc-O3
139 else
140 ghc-options:
141 -O2
142 -optc-O3
143 -optc-march=native
144
145
146 source-repository head
147 type: git
148 location: http://michael.orlitzky.com/git/spline3.git
149 branch: master