@@ -14,9 +14,11 @@ category: Data, Cryptography
14homepage: https://github.com/TomMD/entropy
14homepage: https://github.com/TomMD/entropy
15bug-reports: https://github.com/TomMD/entropy/issues
15bug-reports: https://github.com/TomMD/entropy/issues
16stability: stable
16stability: stable
17-- build-type: Simple
18-- build-type: Simple
18-- ^^ Used for HaLVM
19-- ^^ Used for HaLVM
19build-type: Custom
20build-type: Custom
20-- ^^ Test for RDRAND support using 'ghc'
22-- ^^ Test for RDRAND support using 'ghc'
21cabal-version: >=1.10
23cabal-version: >=1.10
22tested-with: GHC == 8.2.2
24tested-with: GHC == 8.2.2
@@ -41,38 +43,51 @@ custom-setup
42 ghc-options: -O2
44 ghc-options: -O2
43 exposed-modules: System.Entropy
45 exposed-modules: System.Entropy
44− if os(windows)
46+ if impl(ghcjs)
45− other-modules: System.EntropyWindows
47+ other-modules: System.EntropyGhcjs
50+ other-modules: System.EntropyWindows
47− if os(halvm)
52+ if os(halvm)
48− other-modules: System.EntropyXen
53+ other-modules: System.EntropyXen
50− other-modules: System.EntropyNix
55+ other-modules: System.EntropyNix
52 other-extensions: CPP, ForeignFunctionInterface, BangPatterns,
58 other-extensions: CPP, ForeignFunctionInterface, BangPatterns,
53 ScopedTypeVariables
59 ScopedTypeVariables
54 build-depends: base >= 4.8 && < 5, bytestring
60 build-depends: base >= 4.8 && < 5, bytestring
55 default-language: Haskell2010
62 default-language: Haskell2010
65+ build-depends: ghcjs-dom
56− if(os(halvm))
69+ if(os(halvm))
57− cpp-options: -DXEN -DHAVE_RDRAND
70+ cpp-options: -DXEN -DHAVE_RDRAND
58− cc-options: -DXEN -DHAVE_RDRAND
71+ cc-options: -DXEN -DHAVE_RDRAND
59− if arch(x86_64)
72+ if arch(x86_64)
60− cpp-options: -Darch_x86_64
73+ cpp-options: -Darch_x86_64
61− cc-options: -Darch_x86_64 -O2
74+ cc-options: -Darch_x86_64 -O2
62− -- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
75+ -- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
63− c-sources: cbits/rdrand.c
76+ c-sources: cbits/rdrand.c
64− include-dirs: cbits
77+ include-dirs: cbits
65− if arch(i386)
78+ if arch(i386)
66− cpp-options: -Darch_i386
79+ cpp-options: -Darch_i386
67− cc-options: -Darch_i386 -O2
80+ cc-options: -Darch_i386 -O2
68− if os(windows)
81+ if os(windows)
69− build-depends: Win32 >= 2.5
82+ build-depends: Win32 >= 2.5
70− cpp-options: -DisWindows
83+ cpp-options: -DisWindows
71− cc-options: -DisWindows
84+ cc-options: -DisWindows
72− extra-libraries: advapi32
85+ extra-libraries: advapi32
74− if !os(halvm)
87+ if !os(halvm)
75− Build-Depends: unix
88+ Build-Depends: unix
77source-repository head
92source-repository head