summaryrefslogtreecommitdiff
path: root/BuildFlags.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-09 14:57:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-09 14:57:23 -0400
commit07ca31c4725e1b62863ec93a6d03f2e13c41b3fa (patch)
tree4800e8a56ec92dc11d9484d14b2d6340211e574b /BuildFlags.hs
parent60a9f676ef6dafa9eaf4f82389a3d40e098457e2 (diff)
add build flags to version output
Diffstat (limited to 'BuildFlags.hs')
-rw-r--r--BuildFlags.hs51
1 files changed, 51 insertions, 0 deletions
diff --git a/BuildFlags.hs b/BuildFlags.hs
new file mode 100644
index 000000000..f37782c97
--- /dev/null
+++ b/BuildFlags.hs
@@ -0,0 +1,51 @@
+{- git-annex build flags reporting
+ -
+ - Copyright 2013 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+{-# LANGUAGE CPP #-}
+
+module BuildFlags where
+
+buildFlags :: [String]
+buildFlags = filter (not . null)
+ [ ""
+#ifdef WITH_ASSISTANT
+ , "Assistant"
+#endif
+#ifdef WITH_WEBAPP
+ , "Webapp"
+#endif
+#ifdef WITH_PAIRING
+ , "Pairing"
+#endif
+#ifdef WITH_TESTSUITE
+ , "Testsuite"
+#endif
+#ifdef WITH_S3
+ , "S3"
+#endif
+#ifdef WITH_WEBDAV
+ , "WebDAV"
+#endif
+#ifdef WITH_INOTIFY
+ , "Inotify"
+#endif
+#ifdef WITH_FSEVENTS
+ , "FsEvents"
+#endif
+#ifdef WITH_KQUEUE
+ , "Kqueue"
+#endif
+#ifdef WITH_DBUS
+ , "DBus"
+#endif
+#ifdef WITH_XMPP
+ , "XMPP"
+#endif
+#ifdef WITH_DNS
+ , "DNS"
+#endif
+ ]