Commit 773f720b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 285b16df
......@@ -77,4 +77,12 @@ add_subdirectory(kaddressbookgrantlee)
add_subdirectory(kaddressbookimportexport)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
install(FILES kdepim-apps-lib.renamecategories kdepim-apps-lib.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kdepim-apps-lib.renamecategories kdepim-apps-lib.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KDEPIMAPPSLIB
FILE kdepim-apps-lib.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
......@@ -11,7 +11,16 @@ set(kaddressbook_importexport_LIB_SRCS
kaddressbookimportexportcontactfields.cpp
)
ecm_qt_declare_logging_category(kaddressbook_importexport_LIB_SRCS HEADER libkaddressbookexportimport_debug.h IDENTIFIER LIBKADDRESSBOOKIMPORTEXPORT_LOG CATEGORY_NAME org.kde.pim.kaddressbookimportexport)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kaddressbook_importexport_LIB_SRCS HEADER libkaddressbookexportimport_debug.h IDENTIFIER LIBKADDRESSBOOKIMPORTEXPORT_LOG CATEGORY_NAME org.kde.pim.kaddressbookimportexport)
else()
ecm_qt_declare_logging_category(kaddressbook_importexport_LIB_SRCS HEADER libkaddressbookexportimport_debug.h IDENTIFIER LIBKADDRESSBOOKIMPORTEXPORT_LOG CATEGORY_NAME org.kde.pim.kaddressbookimportexport
DESCRIPTION "kdepim-apps-lib (kaddressbookimportexport)"
EXPORT KDEPIMAPPSLIB
)
endif()
add_library(KF5KaddressbookImportExport ${kaddressbook_importexport_LIB_SRCS})
......
......@@ -7,7 +7,16 @@ set(kdepimdbusinterfaces_LIB_SRCS
kdepimdbusinterface_debug.cpp
)
ecm_qt_declare_logging_category(kdepimdbusinterfaces_LIB_SRCS HEADER kdepimdbusinterface_debug.h IDENTIFIER KDEPIMDBUSINTERFACE_LOG CATEGORY_NAME org.kde.pim.kdepimdbusinterface)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kdepimdbusinterfaces_LIB_SRCS HEADER kdepimdbusinterface_debug.h IDENTIFIER KDEPIMDBUSINTERFACE_LOG CATEGORY_NAME org.kde.pim.kdepimdbusinterface)
else()
ecm_qt_declare_logging_category(kdepimdbusinterfaces_LIB_SRCS HEADER kdepimdbusinterface_debug.h IDENTIFIER KDEPIMDBUSINTERFACE_LOG CATEGORY_NAME org.kde.pim.kdepimdbusinterface
DESCRIPTION "kdepim-apps-lib (kdepimdbusinterface)"
OLD_CATEGORY_NAMES log_kdepimdbusinterface
EXPORT KDEPIMAPPSLIB
)
endif()
qt5_generate_dbus_interface(dbusinterfaces/kmkernel.h org.kde.kmail.kmail.xml OPTIONS -a)
......
......@@ -2,7 +2,16 @@
add_definitions(-DTRANSLATION_DOMAIN=\"libsendlater\")
set(sendlater_common_SRCS)
ecm_qt_declare_logging_category(sendlater_common_SRCS HEADER libsendlater_debug.h IDENTIFIER LIBSENDLATER_LOG CATEGORY_NAME org.kde.pim.libsendlater)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(sendlater_common_SRCS HEADER libsendlater_debug.h IDENTIFIER LIBSENDLATER_LOG CATEGORY_NAME org.kde.pim.libsendlater)
else()
ecm_qt_declare_logging_category(sendlater_common_SRCS HEADER libsendlater_debug.h IDENTIFIER LIBSENDLATER_LOG CATEGORY_NAME org.kde.pim.libsendlater
DESCRIPTION "kdepim-apps-lib (libsendlater)"
OLD_CATEGORY_NAMES log_libsendlater
EXPORT KDEPIMAPPSLIB
)
endif()
set(sendlaterlib_SRCS
${sendlater_common_SRCS}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment