diff options
author | 2013-07-12 15:36:59 -0400 | |
---|---|---|
committer | 2013-07-12 15:45:34 -0400 | |
commit | 44b37734be9ebb98bd112ccd1a2e6ae96c50c1ea (patch) | |
tree | fe615dedee3dd0599f675d526cc0e0ba3bd5e2e3 /git-annex.cabal | |
parent | afb6cfb691657df13baca52af710b2683765a16d (diff) |
avoid pulling in unneeded dependencies when the assistant is disabled
Diffstat (limited to 'git-annex.cabal')
-rw-r--r-- | git-annex.cabal | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/git-annex.cabal b/git-annex.cabal index 82aa21671..831aada96 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -103,7 +103,7 @@ Executable git-annex Build-Depends: hS3 CPP-Options: -DWITH_S3 - if flag(WebDAV) + if flag(WebDAV) && flag(Assistant) Build-Depends: DAV (>= 0.3), http-conduit, xml-conduit, http-types CPP-Options: -DWITH_WEBDAV @@ -115,23 +115,24 @@ Executable git-annex Build-Depends: data-endian CPP-Options: -D__ANDROID__ - if os(linux) && flag(Inotify) - Build-Depends: hinotify - CPP-Options: -DWITH_INOTIFY - else - if os(darwin) - Build-Depends: hfsevents - CPP-Options: -DWITH_FSEVENTS + if flag(Assistant) + if os(linux) && flag(Inotify) + Build-Depends: hinotify + CPP-Options: -DWITH_INOTIFY else - if (! os(windows) && ! os(solaris) && ! os(linux)) - CPP-Options: -DWITH_KQUEUE - C-Sources: Utility/libkqueue.c - - if os(linux) && flag(Dbus) + if os(darwin) + Build-Depends: hfsevents + CPP-Options: -DWITH_FSEVENTS + else + if (! os(windows) && ! os(solaris) && ! os(linux)) + CPP-Options: -DWITH_KQUEUE + C-Sources: Utility/libkqueue.c + + if os(linux) && flag(Dbus) && flag(Assistant) Build-Depends: dbus (>= 0.10.3) CPP-Options: -DWITH_DBUS - if flag(Webapp) + if flag(Webapp) && flag(Assistant) Build-Depends: yesod, yesod-default, yesod-static, yesod-form, yesod-core, case-insensitive, http-types, transformers, wai, wai-logger, warp, @@ -140,15 +141,15 @@ Executable git-annex CPP-Options: -DWITH_WEBAPP GHC-Options: -threaded - if flag(Pairing) + if flag(Pairing) && flag(WebApp) Build-Depends: network-multicast, network-info CPP-Options: -DWITH_PAIRING - if flag(XMPP) + if flag(XMPP) && flag(Assistant) Build-Depends: network-protocol-xmpp, gnutls (>= 0.1.4), xml-types CPP-Options: -DWITH_XMPP - if flag(DNS) + if flag(DNS) && flag(WebApp) Build-Depends: dns CPP-Options: -DWITH_DNS |