From 9febc5fd58ee7cf35b666dd18536ea589678132b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 2 Apr 2014 17:50:47 -0400 Subject: [PATCH] try to avoid windows wanting to build dbus --- git-annex.cabal | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/git-annex.cabal b/git-annex.cabal index d4d65528e6..9a46077b1f 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -170,14 +170,15 @@ Executable git-annex CPP-Options: -DWITH_KQUEUE C-Sources: Utility/libkqueue.c - if flag(Dbus) - Build-Depends: dbus (>= 0.10.3) - CPP-Options: -DWITH_DBUS - - if flag(DesktopNotify) + if (os(linux)) if flag(Dbus) - Build-Depends: dbus (>= 0.10.3), fdo-notify (>= 0.3) - CPP-Options: -DWITH_DESKTOP_NOTIFY -DWITH_DBUS_NOTIFICATIONS + Build-Depends: dbus (>= 0.10.3) + CPP-Options: -DWITH_DBUS + + if flag(DesktopNotify) + if flag(Dbus) + Build-Depends: dbus (>= 0.10.3), fdo-notify (>= 0.3) + CPP-Options: -DWITH_DESKTOP_NOTIFY -DWITH_DBUS_NOTIFICATIONS if flag(Android) Build-Depends: data-endian