From fbf425fbef1c1e60fcdddfbd9b25976162725f97 Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 24 Apr 2016 18:43:00 -0400 Subject: Refactored build of executable and library. --- kiki.cabal | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 13 deletions(-) (limited to 'kiki.cabal') diff --git a/kiki.cabal b/kiki.cabal index 176d09c..c79f313 100644 --- a/kiki.cabal +++ b/kiki.cabal @@ -1,7 +1,7 @@ Name: kiki Version: 0.0.3 -cabal-version: >= 1.6 +cabal-version: >= 1.8 Synopsis: A bridge between (cryptographic) keys Description: gpg operations... TODO License: Undecided @@ -23,15 +23,20 @@ Executable kiki Main-is: kiki.hs -- base >=4.6 due to use of readEither in KikiD.Message Build-Depends: base >=4.6.0.0, - directory -any, - openpgp-util -any, - asn1-types -any, asn1-encoding -any, - dataenc -any, text -any, pretty -any, pretty-show -any, - bytestring -any, binary -any, - unix, time, - containers -any, process -any, filepath -any, - network -any, old-locale -any, zlib -any, - tar + asn1-encoding, + asn1-types, + binary, + bytestring, + containers, + dataenc, + directory, + filepath, + tar, + text, + time, + unix, + openpgp-util, + kiki if !flag(cryptonite) Build-Depends: crypto-pubkey >=0.2.3, cryptohash -any, crypto-pubkey-types -any @@ -41,12 +46,50 @@ Executable kiki Build-Depends: x509 <1.6 else Build-Depends: cryptonite, x509 >=1.6, memory, hourglass - ghc-options: -O2 -fwarn-unused-binds -fwarn-unused-imports - c-sources: dotlock.c Executable hosts Main-is: hosts.hs + buildable: False c-sources: dotlock.c library - exposed-modules: KeyRing + hs-source-dirs: lib + exposed-modules: KeyRing, + ScanningParser, + PEM, + DotLock, + Base58, + CryptoCoins, + ProcessUtils + other-modules: Hosts, + TimeUtil, + Compat, + FunctorToMaybe + + Build-Depends: base >=4.6.0.0, + asn1-encoding, + asn1-types, + binary, + bytestring, + containers, + dataenc, + directory, + filepath, + network, + pretty-show, + process, + text, + time, + unix, + zlib, + openpgp-util + if !flag(cryptonite) + Build-Depends: crypto-pubkey >=0.2.3, cryptohash -any, + crypto-pubkey-types -any + if flag(hourglass) + Build-Depends: hourglass -any, x509 >=1.5 && <1.6 + else + Build-Depends: x509 <1.6 + else + Build-Depends: cryptonite, x509 >=1.6, memory, hourglass + c-sources: lib/dotlock.c -- cgit v1.2.3