Warning, /pim/akonadi/src/server/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 ########### next target ############### 0002 set(AKONADI_DB_SCHEMA "${CMAKE_CURRENT_SOURCE_DIR}/storage/akonadidb.xml") 0003 0004 akonadi_run_xsltproc( 0005 XSL ${CMAKE_CURRENT_SOURCE_DIR}/storage/entities.xsl 0006 XML ${AKONADI_DB_SCHEMA} 0007 BASENAME entities 0008 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/storage/entities-source.xsl ${CMAKE_CURRENT_SOURCE_DIR}/storage/entities-header.xsl 0009 ) 0010 0011 akonadi_run_xsltproc( 0012 XSL ${Akonadi_SOURCE_DIR}/src/server/storage/schema.xsl 0013 XML ${AKONADI_DB_SCHEMA} 0014 CLASSNAME AkonadiSchema 0015 BASENAME akonadischema 0016 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/storage/schema-source.xsl ${CMAKE_CURRENT_SOURCE_DIR}/storage/schema-header.xsl 0017 ) 0018 0019 akonadi_add_xmllint_test( 0020 akonadidb-xmllint 0021 XSD ${CMAKE_CURRENT_SOURCE_DIR}/storage/akonadidb.xsd 0022 XML ${AKONADI_DB_SCHEMA} 0023 ) 0024 akonadi_add_xmllint_test( 0025 akonadidbupdate-xmllint 0026 XSD ${CMAKE_CURRENT_SOURCE_DIR}/storage/akonadidb.xsd 0027 XML ${AKONADI_DB_SCHEMA} 0028 ) 0029 0030 set(libakonadiserver_SRCS 0031 akonadi.cpp 0032 aggregatedfetchscope.cpp 0033 aklocalserver.cpp 0034 akthread.cpp 0035 commandcontext.cpp 0036 connection.cpp 0037 collectionscheduler.cpp 0038 handler.cpp 0039 handlerhelper.cpp 0040 intervalcheck.cpp 0041 handler/collectioncopyhandler.cpp 0042 handler/collectioncreatehandler.cpp 0043 handler/collectiondeletehandler.cpp 0044 handler/collectionfetchhandler.cpp 0045 handler/collectionmodifyhandler.cpp 0046 handler/collectionmovehandler.cpp 0047 handler/collectionstatsfetchhandler.cpp 0048 handler/itemcopyhandler.cpp 0049 handler/itemcreatehandler.cpp 0050 handler/itemdeletehandler.cpp 0051 handler/itemfetchhandler.cpp 0052 handler/itemfetchhelper.cpp 0053 handler/itemlinkhandler.cpp 0054 handler/itemmodifyhandler.cpp 0055 handler/itemmovehandler.cpp 0056 handler/loginhandler.cpp 0057 handler/logouthandler.cpp 0058 handler/relationfetchhandler.cpp 0059 handler/relationmodifyhandler.cpp 0060 handler/relationremovehandler.cpp 0061 handler/resourceselecthandler.cpp 0062 handler/searchhandler.cpp 0063 handler/searchhelper.cpp 0064 handler/searchcreatehandler.cpp 0065 handler/searchresulthandler.cpp 0066 handler/tagcreatehandler.cpp 0067 handler/tagdeletehandler.cpp 0068 handler/tagfetchhandler.cpp 0069 handler/tagfetchhelper.cpp 0070 handler/tagmodifyhandler.cpp 0071 handler/transactionhandler.cpp 0072 search/agentsearchengine.cpp 0073 search/agentsearchinstance.cpp 0074 search/searchtaskmanager.cpp 0075 search/searchrequest.cpp 0076 search/searchmanager.cpp 0077 0078 storage/collectionqueryhelper.cpp 0079 storage/collectionstatistics.cpp 0080 storage/entity.cpp 0081 ${CMAKE_CURRENT_BINARY_DIR}/entities.cpp 0082 ${CMAKE_CURRENT_BINARY_DIR}/akonadischema.cpp 0083 storage/datastore.cpp 0084 storage/dbconfig.cpp 0085 storage/dbconfigmysql.cpp 0086 storage/dbconfigpostgresql.cpp 0087 storage/dbconfigsqlite.cpp 0088 storage/dbexception.cpp 0089 storage/dbinitializer.cpp 0090 storage/dbinitializer_p.cpp 0091 storage/dbintrospector.cpp 0092 storage/dbintrospector_impl.cpp 0093 storage/dbupdater.cpp 0094 storage/dbtype.cpp 0095 storage/itemqueryhelper.cpp 0096 storage/itemretriever.cpp 0097 storage/itemretrievalmanager.cpp 0098 storage/itemretrievaljob.cpp 0099 storage/itemretrievalrequest.cpp 0100 storage/notificationcollector.cpp 0101 storage/parthelper.cpp 0102 storage/parttypehelper.cpp 0103 storage/query.cpp 0104 storage/querybuilder.cpp 0105 storage/querycache.cpp 0106 storage/queryhelper.cpp 0107 storage/schematypes.cpp 0108 storage/tagqueryhelper.cpp 0109 storage/transaction.cpp 0110 storage/parthelper.cpp 0111 storage/partstreamer.cpp 0112 storage/storagedebugger.cpp 0113 tracer.cpp 0114 utils.cpp 0115 dbustracer.cpp 0116 filetracer.cpp 0117 notificationmanager.cpp 0118 notificationsubscriber.cpp 0119 resourcemanager.cpp 0120 cachecleaner.cpp 0121 debuginterface.cpp 0122 preprocessorinstance.cpp 0123 preprocessormanager.cpp 0124 storagejanitor.cpp 0125 storage/akonadidb.qrc 0126 0127 0128 akonadi.h 0129 aggregatedfetchscope.h 0130 aklocalserver.h 0131 akthread.h 0132 commandcontext.h 0133 connection.h 0134 collectionscheduler.h 0135 handler.h 0136 handlerhelper.h 0137 intervalcheck.h 0138 handler/collectioncopyhandler.h 0139 handler/collectioncreatehandler.h 0140 handler/collectiondeletehandler.h 0141 handler/collectionfetchhandler.h 0142 handler/collectionmodifyhandler.h 0143 handler/collectionmovehandler.h 0144 handler/collectionstatsfetchhandler.h 0145 handler/itemcopyhandler.h 0146 handler/itemcreatehandler.h 0147 handler/itemdeletehandler.h 0148 handler/itemfetchhandler.h 0149 handler/itemfetchhelper.h 0150 handler/itemlinkhandler.h 0151 handler/itemmodifyhandler.h 0152 handler/itemmovehandler.h 0153 handler/loginhandler.h 0154 handler/logouthandler.h 0155 handler/relationfetchhandler.h 0156 handler/relationmodifyhandler.h 0157 handler/relationremovehandler.h 0158 handler/resourceselecthandler.h 0159 handler/searchhandler.h 0160 handler/searchhelper.h 0161 handler/searchcreatehandler.h 0162 handler/searchresulthandler.h 0163 handler/tagcreatehandler.h 0164 handler/tagdeletehandler.h 0165 handler/tagfetchhandler.h 0166 handler/tagfetchhelper.h 0167 handler/tagmodifyhandler.h 0168 handler/transactionhandler.h 0169 search/agentsearchengine.h 0170 search/agentsearchinstance.h 0171 search/searchtaskmanager.h 0172 search/searchrequest.h 0173 search/searchmanager.h 0174 search/abstractsearchplugin.h 0175 0176 storage/collectionqueryhelper.h 0177 storage/collectionstatistics.h 0178 storage/entity.h 0179 storage/datastore.h 0180 storage/dbconfig.h 0181 storage/dbconfigmysql.h 0182 storage/dbconfigpostgresql.h 0183 storage/dbconfigsqlite.h 0184 storage/dbexception.h 0185 storage/dbinitializer.h 0186 storage/dbinitializer_p.h 0187 storage/dbintrospector.h 0188 storage/dbintrospector_impl.h 0189 storage/dbupdater.h 0190 storage/dbtype.h 0191 storage/itemqueryhelper.h 0192 storage/itemretriever.h 0193 storage/itemretrievalmanager.h 0194 storage/itemretrievaljob.h 0195 storage/itemretrievalrequest.h 0196 storage/notificationcollector.h 0197 storage/parthelper.h 0198 storage/parttypehelper.h 0199 storage/query.h 0200 storage/querybuilder.h 0201 storage/querycache.h 0202 storage/queryhelper.h 0203 storage/schematypes.h 0204 storage/tagqueryhelper.h 0205 storage/transaction.h 0206 storage/parthelper.h 0207 storage/partstreamer.h 0208 storage/storagedebugger.h 0209 tracer.h 0210 utils.h 0211 dbustracer.h 0212 filetracer.h 0213 notificationmanager.h 0214 notificationsubscriber.h 0215 resourcemanager.h 0216 cachecleaner.h 0217 debuginterface.h 0218 preprocessorinstance.h 0219 preprocessormanager.h 0220 storagejanitor.h 0221 0222 ) 0223 0224 set(akonadiserver_SRCS 0225 main.cpp 0226 ) 0227 ecm_qt_declare_logging_category(libakonadiserver_SRCS HEADER akonadiserver_debug.h IDENTIFIER AKONADISERVER_LOG CATEGORY_NAME org.kde.pim.akonadiserver 0228 DESCRIPTION "akonadi (Akonadi Server)" 0229 OLD_CATEGORY_NAMES log_akonadiserver 0230 EXPORT AKONADI 0231 ) 0232 0233 ecm_qt_declare_logging_category(libakonadiserver_SRCS HEADER akonadiserver_search_debug.h IDENTIFIER AKONADISERVER_SEARCH_LOG CATEGORY_NAME org.kde.pim.akonadiserver.search 0234 DESCRIPTION "akonadi (Akonadi Server Search Functionality)" 0235 EXPORT AKONADI 0236 ) 0237 0238 qt_generate_dbus_interface(debuginterface.h org.freedesktop.Akonadi.DebugInterface.xml) 0239 0240 qt_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.TracerNotification.xml dbustracer.h Akonadi::Server::DBusTracer) 0241 qt_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.Tracer.xml tracer.h Akonadi::Server::Tracer) 0242 qt_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.Server.xml akonadi.h Akonadi::Server::AkonadiServer) 0243 qt_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.StorageDebugger.xml storage/storagedebugger.h Akonadi::Server::StorageDebugger) 0244 qt_add_dbus_adaptor(libakonadiserver_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Akonadi.DebugInterface.xml debuginterface.h Akonadi::Server::DebugInterface) 0245 qt_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.ResourceManager.xml resourcemanager.h Akonadi::Server::ResourceManager) 0246 qt_add_dbus_adaptor(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.PreprocessorManager.xml preprocessormanager.h Akonadi::Server::PreprocessorManager) 0247 qt_add_dbus_interface(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.AgentManager.xml agentmanagerinterface) 0248 qt_add_dbus_interface(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.Resource.xml resourceinterface) 0249 qt_add_dbus_interface(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.Preprocessor.xml preprocessorinterface) 0250 qt_add_dbus_interface(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.Agent.Control.xml agentcontrolinterface) 0251 qt_add_dbus_interface(libakonadiserver_SRCS ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.Agent.Search.xml agentsearchinterface) 0252 0253 add_library(libakonadiserver STATIC ${libakonadiserver_SRCS}) 0254 #if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) 0255 # set_target_properties(libakonadiserver PROPERTIES UNITY_BUILD ON) 0256 # set_source_files_properties(storage/itemretrievalmanager.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON) 0257 #endif() 0258 0259 set_target_properties(libakonadiserver PROPERTIES OUTPUT_NAME akonadiserver) 0260 0261 if(MYSQLD_EXECUTABLE) 0262 target_compile_definitions(libakonadiserver PRIVATE MYSQLD_EXECUTABLE="${MYSQLD_EXECUTABLE}") 0263 endif() 0264 0265 if(MYSQLD_SCRIPTS_PATH) 0266 target_compile_definitions(libakonadiserver PRIVATE MYSQLD_SCRIPTS_PATH="${MYSQLD_SCRIPTS_PATH}") 0267 endif() 0268 0269 if(POSTGRES_PATH) 0270 target_compile_definitions(libakonadiserver PRIVATE POSTGRES_PATH="${POSTGRES_PATH}") 0271 endif() 0272 0273 target_link_libraries(libakonadiserver 0274 akonadi_shared 0275 KPim6::AkonadiPrivate 0276 Qt::Core 0277 Qt::Network 0278 Qt::Sql 0279 Qt::DBus 0280 Qt::Xml 0281 ) 0282 0283 add_executable(akonadiserver ${akonadiserver_SRCS}) 0284 set_target_properties(akonadiserver PROPERTIES MACOSX_BUNDLE FALSE) 0285 set_target_properties(akonadiserver PROPERTIES OUTPUT_NAME akonadiserver) 0286 target_link_libraries(akonadiserver 0287 libakonadiserver 0288 KF6::CoreAddons 0289 ) 0290 0291 install(TARGETS akonadiserver 0292 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} 0293 ) 0294 0295 install(FILES 0296 storage/mysql-global.conf 0297 storage/mysql-global-mobile.conf 0298 DESTINATION ${KDE_INSTALL_CONFDIR}/akonadi 0299 ) 0300 0301 install(FILES 0302 search/abstractsearchplugin.h 0303 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/AkonadiCore/akonadi 0304 ) 0305 0306 ## DBus XML files 0307 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Akonadi.DebugInterface.xml 0308 DESTINATION ${AKONADI_DBUS_INTERFACES_INSTALL_DIR} 0309 ) 0310 0311 ####################################################### 0312 0313 add_subdirectory(dbmigrator)