summaryrefslogtreecommitdiff
path: root/bittorrent.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r--bittorrent.cabal13
1 files changed, 12 insertions, 1 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal
index b3165137..90053932 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -62,6 +62,10 @@ flag aeson
62 description: Use aeson for pretty-printing bencoded data. 62 description: Use aeson for pretty-printing bencoded data.
63 default: True 63 default: True
64 64
65flag thread-debug
66 description: Add instrumentation to threads.
67 default: True
68
65library 69library
66 default-language: Haskell2010 70 default-language: Haskell2010
67 default-extensions: PatternGuards 71 default-extensions: PatternGuards
@@ -122,7 +126,6 @@ library
122 Network.BitTorrent.Internal.Types 126 Network.BitTorrent.Internal.Types
123 System.Torrent.FileMap 127 System.Torrent.FileMap
124 System.Torrent.Tree 128 System.Torrent.Tree
125
126 build-depends: lifted-base 129 build-depends: lifted-base
127 , convertible >= 1.0 130 , convertible >= 1.0
128 , pretty >= 1.1 131 , pretty >= 1.1
@@ -216,6 +219,11 @@ library
216 if flag(aeson) 219 if flag(aeson)
217 build-depends: aeson, aeson-pretty, unordered-containers, vector 220 build-depends: aeson, aeson-pretty, unordered-containers, vector
218 cpp-options: -DBENCODE_AESON 221 cpp-options: -DBENCODE_AESON
222 if flag(thread-debug)
223 exposed-modules: Control.Concurrent.Lifted.Instrument
224 Control.Concurrent.Async.Lifted.Instrument
225 cpp-options: -DTHREAD_DEBUG
226
219 if flag(builder) 227 if flag(builder)
220 build-depends: bytestring >= 0.9, bytestring-builder 228 build-depends: bytestring >= 0.9, bytestring-builder
221 else 229 else
@@ -363,6 +371,9 @@ executable dhtd
363 , monad-logger 371 , monad-logger
364 , bittorrent 372 , bittorrent
365 , unix 373 , unix
374 if flag(thread-debug)
375 build-depends: time
376 cpp-options: -DTHREAD_DEBUG
366 377
367-- Utility to work with torrent files. 378-- Utility to work with torrent files.
368executable mktorrent 379executable mktorrent