diff options
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r-- | bittorrent.cabal | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal index 2dee30ee..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 | ||
65 | flag thread-debug | ||
66 | description: Add instrumentation to threads. | ||
67 | default: True | ||
68 | |||
65 | library | 69 | library |
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 |
@@ -362,6 +370,10 @@ executable dhtd | |||
362 | , data-default | 370 | , data-default |
363 | , monad-logger | 371 | , monad-logger |
364 | , bittorrent | 372 | , bittorrent |
373 | , unix | ||
374 | if flag(thread-debug) | ||
375 | build-depends: time | ||
376 | cpp-options: -DTHREAD_DEBUG | ||
365 | 377 | ||
366 | -- Utility to work with torrent files. | 378 | -- Utility to work with torrent files. |
367 | executable mktorrent | 379 | executable mktorrent |