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