summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2014-01-09 08:43:36 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2014-01-09 08:43:36 +0100
commit66a48125678a2dc8f1de19aec6b727d4441548e2 (patch)
tree6dca2f29b659ac88ebae750efe491dcf6ea14ba5
parent9e6fcc286973d66987299eced000dbb3f3643d13 (diff)
signon: fix compilation with nothing enabled, II
The earlier fix did not cover the case of compiling SyncEvolution statically. In that case the *Register.cpp files do get compiled for all backends. When nothing is enabled, signonRegister.cpp cannot register any kind of provider. Source backends can register an inactive source backend to document that the backend exists and merely was not enabled during compilation; there is no such support for providers.
-rw-r--r--src/backends/signon/signonRegister.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backends/signon/signonRegister.cpp b/src/backends/signon/signonRegister.cpp
index b7188b17..acf91f55 100644
--- a/src/backends/signon/signonRegister.cpp
+++ b/src/backends/signon/signonRegister.cpp
@@ -26,6 +26,7 @@
#include <syncevo/declarations.h>
SE_BEGIN_CXX
+#if defined(USE_GSSO) || defined(USE_UOA)
static class SignonProvider : public IdentityProvider
{
public:
@@ -64,4 +65,6 @@ public:
}
} gsso;
+#endif // USE_GSSO || USE_UOA
+
SE_END_CXX