diff options
Diffstat (limited to 'dht-client.cabal')
-rw-r--r-- | dht-client.cabal | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dht-client.cabal b/dht-client.cabal index ad36d12a..a9e1f847 100644 --- a/dht-client.cabal +++ b/dht-client.cabal | |||
@@ -52,6 +52,10 @@ flag thread-debug | |||
52 | description: Add instrumentation to threads. | 52 | description: Add instrumentation to threads. |
53 | default: True | 53 | default: True |
54 | 54 | ||
55 | flag xmpp | ||
56 | description: Include code for xmpp clients | ||
57 | default: True | ||
58 | |||
55 | library | 59 | library |
56 | default-language: Haskell2010 | 60 | default-language: Haskell2010 |
57 | default-extensions: PatternGuards | 61 | default-extensions: PatternGuards |
@@ -217,6 +221,8 @@ library | |||
217 | exposed-modules: Control.Concurrent.Lifted.Instrument | 221 | exposed-modules: Control.Concurrent.Lifted.Instrument |
218 | Control.Concurrent.Async.Lifted.Instrument | 222 | Control.Concurrent.Async.Lifted.Instrument |
219 | cpp-options: -DTHREAD_DEBUG | 223 | cpp-options: -DTHREAD_DEBUG |
224 | if flag(xmpp) | ||
225 | cpp-options: -DXMPP | ||
220 | 226 | ||
221 | if flag(builder) | 227 | if flag(builder) |
222 | build-depends: bytestring >= 0.9, bytestring-builder | 228 | build-depends: bytestring >= 0.9, bytestring-builder |
@@ -257,5 +263,7 @@ executable dhtd | |||
257 | if flag(thread-debug) | 263 | if flag(thread-debug) |
258 | build-depends: time | 264 | build-depends: time |
259 | cpp-options: -DTHREAD_DEBUG -DRENDERFLUSH | 265 | cpp-options: -DTHREAD_DEBUG -DRENDERFLUSH |
266 | if flag(xmpp) | ||
267 | cpp-options: -DXMPP | ||
260 | ghc-options: -rtsopts -fdefer-typed-holes -threaded | 268 | ghc-options: -rtsopts -fdefer-typed-holes -threaded |
261 | 269 | ||