-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathZ-Botan.cabal
182 lines (166 loc) · 4.37 KB
/
Z-Botan.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
cabal-version: 2.4
name: Z-Botan
version: 0.4.0.0
synopsis: Crypto for Haskell
description: Crypto for Haskell, based on <http://botan.randombit.net/ Botan>
license: BSD-3-Clause
license-file: LICENSE
author: Z.Haskell Contributors
maintainer: [email protected]
copyright: (c) Z.Haskell Contributors, 2017-2021
category: Data
build-type: Custom
homepage: https://github.com/ZHaskell/z-botan
bug-reports: https://github.com/ZHaskell/z-botan/issues
extra-source-files:
ChangeLog.md
LICENSE
README.md
third_party/botan/configure.py
third_party/botan/src/**/*.cpp
third_party/botan/src/**/*.h
third_party/botan/src/**/*.in
third_party/botan/src/**/*.txt
third_party/botan/src/**/*.json
third_party/botan/doc/**/*.txt
third_party/botan/doc/**/*.rst
third_party/botan/build/include/external/cabal.placeholder
third_party/cacert.md
third_party/cacert.pem
-- https://curl.se/docs/caextract.html
data-files: third_party/cacert.pem
custom-setup
setup-depends:
, base >=4.5 && <5.0
, Cabal >=2.4.0.0 && <4
, directory >=1.2.3.0
, filepath
source-repository head
type: git
location: git://github.com/haskell-Z/z-botan.git
library
exposed-modules:
Z.Botan.Errno
Z.Botan.Exception
Z.Botan.FFI
Z.Crypto.Cipher
Z.Crypto.FPE
Z.Crypto.Hash
Z.Crypto.KDF
Z.Crypto.KeyWrap
Z.Crypto.MAC
Z.Crypto.MPI
Z.Crypto.OTP
Z.Crypto.PubKey
Z.Crypto.PwdHash
Z.Crypto.RNG
Z.Crypto.SafeMem
Z.Crypto.X509
other-modules: Paths_Z_Botan
autogen-modules: Paths_Z_Botan
build-depends:
, base >=4.12 && <5.0
, ghc-prim >=0.5.3
, integer-gmp >=1 && <2
, scientific ^>=0.3
, stm ^>=2.5
, time == 1.11.*
, primitive == 0.7.*
, Z-Data >=0.8.7 && < 0.9
, Z-IO >=0.8.1.1 && < 0.9
include-dirs:
third_party/botan third_party/botan/build/include
third_party/botan/build/include/external
cxx-sources: third_party/botan/botan_all.cpp
cbits/hs_botan_extra.cpp
cbits/hs_botan_certstore.cpp
cbits/hs_botan_streamcipher.cpp
if os(windows)
extra-libraries:
ws2_32
crypt32
cxx-options:
-m64 -pthread
-D_WIN32_WINNT=0x0600 -D_REENTRANT
-DBOTAN_IS_BEING_BUILT
-fno-stack-protector
-std=c++11 -ffixed-xmm16 -ffixed-xmm17 -ffixed-xmm18
-ffixed-xmm19 -ffixed-xmm20 -ffixed-xmm21 -ffixed-xmm22
-ffixed-xmm23 -ffixed-xmm24 -ffixed-xmm25 -ffixed-xmm26
-ffixed-xmm27 -ffixed-xmm28 -ffixed-xmm29 -ffixed-xmm30
-ffixed-xmm31
else
cxx-options: -std=c++11 -D_REENTRANT -DBOTAN_IS_BEING_BUILT
if os(osx)
extra-libraries: c++
frameworks: CoreFoundation
Security
else
extra-libraries: stdc++
default-language: Haskell2010
default-extensions:
BangPatterns
BlockArguments
CApiFFI
CPP
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveGeneric
DerivingStrategies
ExistentialQuantification
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
KindSignatures
LambdaCase
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
PartialTypeSignatures
PatternSynonyms
PolyKinds
QuantifiedConstraints
QuasiQuotes
RankNTypes
RecordWildCards
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeFamilyDependencies
TypeOperators
UnboxedTuples
UnliftedFFITypes
ViewPatterns
build-tool-depends: hsc2hs:hsc2hs -any, hspec-discover:hspec-discover -any
ghc-options: -Wall
test-suite Z-Botan-Test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test/
build-depends:
, base
, hspec >=2.5.4
, HUnit
, QuickCheck >=2.10
, quickcheck-instances
, Z-Botan
, Z-Data
, Z-IO
other-modules:
Utils
Z.Crypto.CipherSpec
Z.Crypto.HashSpec
Z.Crypto.KDFSpec
Z.Crypto.KeyWrapSpec
Z.Crypto.MACSpec
Z.Crypto.PwdHashSpec
ghc-options: -threaded
default-language: Haskell2010