summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-05 18:00:20 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-05 18:00:20 -0400
commit5f16e6bfaf509cb387d9641bc73d7f1b2558dc7c (patch)
tree11988c2ab9993d44259050b7f9ceef9997b075d6 /git-annex.cabal
parent730ca53d01dd7bb5d5f56e4ea759bf827ceb7e32 (diff)
Brought back the dbus and xmpp build flags, so build from source can be done without C libraries that may be hard to install.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal20
1 files changed, 14 insertions, 6 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index a622a04e5..c40773f2e 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -84,6 +84,12 @@ Flag network-uri
Flag Cryptonite
Description: Use the cryptonite library, instead of the older cryptohash
+Flag Dbus
+ Description: Enable dbus support
+
+Flag XMPP
+ Description: Enable notifications using XMPP
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends:
@@ -181,9 +187,10 @@ Executable git-annex
CPP-Options: -DWITH_KQUEUE
C-Sources: Utility/libkqueue.c
- if (os(linux))
- Build-Depends: dbus (>= 0.10.7), fdo-notify (>= 0.3)
- CPP-Options: -DWITH_DBUS -DWITH_DESKTOP_NOTIFY -DWITH_DBUS_NOTIFICATIONS
+ if flag(Dbus)
+ if (os(linux))
+ Build-Depends: dbus (>= 0.10.7), fdo-notify (>= 0.3)
+ CPP-Options: -DWITH_DBUS -DWITH_DESKTOP_NOTIFY -DWITH_DBUS_NOTIFICATIONS
if flag(Android)
Build-Depends: data-endian
@@ -213,9 +220,10 @@ Executable git-annex
Build-Depends: network-multicast, network-info
CPP-Options: -DWITH_PAIRING
- if (! os(windows))
- Build-Depends: network-protocol-xmpp, gnutls (>= 0.1.4), xml-types
- CPP-Options: -DWITH_XMPP
+ if flag(XMPP)
+ if (! os(windows))
+ Build-Depends: network-protocol-xmpp, gnutls (>= 0.1.4), xml-types
+ CPP-Options: -DWITH_XMPP
if flag(TorrentParser)
Build-Depends: torrent (>= 10000.0.0)