Akonadi: fixed backend instantiation

When building modules, the registation code must be part of
the module. Integration testing should always be offered by
the backend. The ifdef is only for the test driver.
This commit is contained in:
Patrick Ohly 2012-01-31 16:23:59 +00:00
parent 2f16f6c15e
commit 980f1f4ec6
2 changed files with 4 additions and 3 deletions

View File

@ -335,8 +335,6 @@ SYNCEVOLUTION_TEST_SUITE_REGISTRATION(AkonadiTest);
#endif // ENABLE_UNIT_TESTS
#ifdef ENABLE_INTEGRATION_TESTS
namespace {
#if 0
}
@ -383,7 +381,6 @@ public:
} memoTest;
}
#endif // ENABLE_INTEGRATION_TESTS
#endif // ENABLE_AKONADI

View File

@ -289,3 +289,7 @@ TrackingSyncSource::InsertItemResult AkonadiMemoSource::insertItem(const std::st
SE_END_CXX
#endif // ENABLE_AKONADI
#ifdef ENABLE_MODULES
# include "AkonadiSyncSourceRegister.cpp"
#endif