summaryrefslogtreecommitdiff
path: root/bittorrent.cabal
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-06-04 22:39:14 -0400
committerjoe <joe@jerkface.net>2017-06-04 22:39:14 -0400
commit219d72ebde4bab5a516a86608dcb3aede75c1611 (patch)
treedf111d38c3532b9342f30c1bad98ef095569d54f /bittorrent.cabal
parent713cee07450697e40811e74059739da02dd604c7 (diff)
WIP: Adapting DHT to Tox network.
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r--bittorrent.cabal17
1 files changed, 13 insertions, 4 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal
index a8858abd..b625176d 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -52,7 +52,7 @@ flag bits-extras
52 52
53flag dht-only 53flag dht-only
54 description: Build only DHT related modules. 54 description: Build only DHT related modules.
55 default: False 55 default: True
56 56
57flag builder 57flag builder
58 description: Use older bytestring package and bytestring-builder. 58 description: Use older bytestring package and bytestring-builder.
@@ -66,6 +66,10 @@ flag thread-debug
66 description: Add instrumentation to threads. 66 description: Add instrumentation to threads.
67 default: True 67 default: True
68 68
69flag tox-only
70 description: Enable only the Tox DHT and disable Mainline bencoded messages.
71 default: True
72
69library 73library
70 default-language: Haskell2010 74 default-language: Haskell2010
71 default-extensions: PatternGuards 75 default-extensions: PatternGuards
@@ -76,7 +80,6 @@ library
76 Network.KRPC.Message 80 Network.KRPC.Message
77 Network.KRPC.Method 81 Network.KRPC.Method
78 Network.KRPC.Manager 82 Network.KRPC.Manager
79 Data.BEncode.Pretty
80 Data.Torrent 83 Data.Torrent
81 Data.Digest.CRC32C 84 Data.Digest.CRC32C
82 Network.BitTorrent.Address 85 Network.BitTorrent.Address
@@ -183,7 +186,6 @@ library
183 , base16-bytestring >= 0.1 186 , base16-bytestring >= 0.1
184 , base32-bytestring >= 0.2 187 , base32-bytestring >= 0.2
185 , base64-bytestring >= 1.0 188 , base64-bytestring >= 1.0
186 , bencoding >= 0.4.3
187 , cereal >= 0.3.5 189 , cereal >= 0.3.5
188 190
189 -- Time 191 -- Time
@@ -221,6 +223,12 @@ library
221 , bits-extras >= 0.1.2 223 , bits-extras >= 0.1.2
222 else 224 else
223 build-depends: base >= 4.8 225 build-depends: base >= 4.8
226 if !flag(tox-only)
227 build-depends: bencoding >= 0.4.3
228 exposed-modules: Data.BEncode.Pretty
229 else
230 build-depends: largeword
231 exposed-modules: Data.Tox
224 if flag(aeson) 232 if flag(aeson)
225 build-depends: aeson, aeson-pretty, unordered-containers, vector 233 build-depends: aeson, aeson-pretty, unordered-containers, vector
226 cpp-options: -DBENCODE_AESON 234 cpp-options: -DBENCODE_AESON
@@ -319,7 +327,6 @@ test-suite spec
319 , quickcheck-instances 327 , quickcheck-instances
320 328
321 -- * Bittorrent 329 -- * Bittorrent
322 , bencoding
323 , bittorrent 330 , bittorrent
324 , temporary 331 , temporary
325 if flag(network-uri) 332 if flag(network-uri)
@@ -327,6 +334,8 @@ test-suite spec
327 , network-uri >= 2.6 334 , network-uri >= 2.6
328 else 335 else
329 Build-depends: network >= 2.4 && < 2.6 336 Build-depends: network >= 2.4 && < 2.6
337 if !flag(tox-only)
338 build-depends: bencoding >= 0.4.3
330 ghc-options: -Wall -fno-warn-orphans 339 ghc-options: -Wall -fno-warn-orphans
331 340
332 341