warn when various build flags are unset

This commit is contained in:
Joey Hess 2014-03-07 14:37:01 -04:00
parent 533bc8a83e
commit 75ad28dd7c
2 changed files with 20 additions and 1 deletions

View file

@ -45,7 +45,6 @@ import Assistant.Threads.XMPPClient
import Assistant.Threads.XMPPPusher import Assistant.Threads.XMPPPusher
#endif #endif
#else #else
#warning Building without the webapp. You probably need to install Yesod..
import Assistant.Types.UrlRenderer import Assistant.Types.UrlRenderer
#endif #endif
import qualified Utility.Daemon import qualified Utility.Daemon

View file

@ -14,21 +14,33 @@ buildFlags = filter (not . null)
[ "" [ ""
#ifdef WITH_ASSISTANT #ifdef WITH_ASSISTANT
, "Assistant" , "Assistant"
#else
#warning Building without the assistant.
#endif #endif
#ifdef WITH_WEBAPP #ifdef WITH_WEBAPP
, "Webapp" , "Webapp"
#else
#warning Building without the webapp. You probably need to install Yesod..
#endif #endif
#ifdef WITH_PAIRING #ifdef WITH_PAIRING
, "Pairing" , "Pairing"
#else
#warning Building without local pairing.
#endif #endif
#ifdef WITH_TESTSUITE #ifdef WITH_TESTSUITE
, "Testsuite" , "Testsuite"
#else
#warning Building without the testsuite.
#endif #endif
#ifdef WITH_S3 #ifdef WITH_S3
, "S3" , "S3"
#else
#warning Building without S3.
#endif #endif
#ifdef WITH_WEBDAV #ifdef WITH_WEBDAV
, "WebDAV" , "WebDAV"
#else
#warning Building without WebDAV.
#endif #endif
#ifdef WITH_INOTIFY #ifdef WITH_INOTIFY
, "Inotify" , "Inotify"
@ -44,21 +56,29 @@ buildFlags = filter (not . null)
#endif #endif
#ifdef WITH_XMPP #ifdef WITH_XMPP
, "XMPP" , "XMPP"
#else
#warning Building without XMPP.
#endif #endif
#ifdef WITH_DNS #ifdef WITH_DNS
, "DNS" , "DNS"
#endif #endif
#ifdef WITH_FEED #ifdef WITH_FEED
, "Feeds" , "Feeds"
#else
#warning Building without Feeds.
#endif #endif
#ifdef WITH_QUVI #ifdef WITH_QUVI
, "Quvi" , "Quvi"
#else
#warning Building without quvi.
#endif #endif
#ifdef WITH_TDFA #ifdef WITH_TDFA
, "TDFA" , "TDFA"
#endif #endif
#ifdef WITH_CRYPTOHASH #ifdef WITH_CRYPTOHASH
, "CryptoHash" , "CryptoHash"
#else
#warning Building without CryptoHash.
#endif #endif
#ifdef WITH_EKG #ifdef WITH_EKG
, "EKG" , "EKG"