forked from leptonyu/crc32c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
54 lines (52 loc) · 1.25 KB
/
package.yaml
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
name: crc32c
version: 0.1.0
synopsis: Haskell bindings for crc32c
# description:
homepage: https://github.com/leptonyu/crc32c#readme
license: BSD3
author: Daniel YU
maintainer: [email protected]
copyright: (c) Daniel YU
category: FFI, Raw
extra-source-files:
- README.md
- include/LICENSE
- include/*.h
- include/crc32c/*.h
library:
exposed-modules:
- Data.Digest.CRC32C
other-modules:
- Data.Digest.CRC32C.Internal
build-tools: c2hs
extra-libraries: stdc++
source-dirs: src
dependencies:
- base >= 4.9 && < 5
- bytestring >=0.10.8.2
include-dirs:
- include
c-sources:
- include/*.cc
when:
- condition: arch(x86_64)
then:
cc-options: -std=c++11 -D__HAVE_SSE42=1 -D__HAVE_ARM64_CRC32C=0 -msse4.2
else:
when:
- condition: arch(arm)
then:
cc-options: -std=c++11 -D__HAVE_SSE42=0 -D__HAVE_ARM64_CRC32C=1
else:
cc-options: -std=c++11 -D__HAVE_SSE42=0 -D__HAVE_ARM64_CRC32C=0
tests:
crc32c-test:
source-dirs: test
main: Spec.hs
dependencies:
- base >= 4.9 && < 5
- bytestring >=0.10.8.2 && <0.11
- crc32c
- hspec
- hspec-core
- QuickCheck