This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
cryptohash.cabal
51 lines (48 loc) · 1.63 KB
/
cryptohash.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
Name: cryptohash
Version: 0.4
Description: Efficient crypto hash computation
License: BSD3
License-file: LICENSE
Author: Vincent Hanquez
Maintainer: vincent@snarc.org
Build-Type: Simple
Cabal-Version: >=1.2
Flag unittest
Description: Build unit test
Default: False
Library
Build-Depends: base >= 3 && < 5, bytestring
Extensions: ForeignFunctionInterface
Exposed-modules: Data.CryptoHash.SHA1
Data.CryptoHash.SHA224
Data.CryptoHash.SHA256
Data.CryptoHash.SHA384
Data.CryptoHash.SHA512
Data.CryptoHash.MD2
Data.CryptoHash.MD4
Data.CryptoHash.MD5
Data.CryptoHash.RIPEMD160
ghc-options: -Wall -O2 -optc-O3 -fno-cse
C-sources: cbits/sha1.c
cbits/sha256.c
cbits/sha512.c
cbits/md2.c
cbits/md4.c
cbits/md5.c
cbits/ripemd.c
Include-Dirs: cbits
Executable Tests
Main-Is: Tests.hs
Extensions: ForeignFunctionInterface
Build-depends: base >= 3 && < 5, HUnit, bytestring
C-sources: cbits/sha1.c
cbits/sha256.c
cbits/sha512.c
cbits/md2.c
cbits/md4.c
cbits/md5.c
cbits/ripemd.c
if flag(unittest)
Buildable: True
else
Buildable: False