Commit 08c73530 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 272c02f8
...@@ -84,5 +84,13 @@ endif() ...@@ -84,5 +84,13 @@ endif()
add_definitions(-DQT_NO_FOREACH) add_definitions(-DQT_NO_FOREACH)
add_subdirectory(src) add_subdirectory(src)
install(FILES pimcommon.renamecategories pimcommon.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES pimcommon.renamecategories pimcommon.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT PIMCOMMON
FILE pimcommon.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -132,7 +132,16 @@ set(libpimcommon_SRCS ...@@ -132,7 +132,16 @@ set(libpimcommon_SRCS
${libpimcommon_generericplugin_SRCS} ${libpimcommon_generericplugin_SRCS}
) )
qt5_add_resources(libpimcommon_SRCS widgets/icons.qrc) qt5_add_resources(libpimcommon_SRCS widgets/icons.qrc)
ecm_qt_declare_logging_category(libpimcommon_SRCS HEADER pimcommon_debug.h IDENTIFIER PIMCOMMON_LOG CATEGORY_NAME org.kde.pim.pimcommon) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libpimcommon_SRCS HEADER pimcommon_debug.h IDENTIFIER PIMCOMMON_LOG CATEGORY_NAME org.kde.pim.pimcommon)
else()
ecm_qt_declare_logging_category(libpimcommon_SRCS HEADER pimcommon_debug.h IDENTIFIER PIMCOMMON_LOG CATEGORY_NAME org.kde.pim.pimcommon
DESCRIPTION "kdepim (pimcommon)"
OLD_CATEGORY_NAMES log_pimcommon
EXPORT PIMCOMMON
)
endif()
ki18n_wrap_ui(libpimcommon_SRCS ki18n_wrap_ui(libpimcommon_SRCS
autocorrection/ui/autocorrectionwidget.ui autocorrection/ui/autocorrectionwidget.ui
......
...@@ -93,7 +93,15 @@ set(libpimcommonakonadi_SRCS ...@@ -93,7 +93,15 @@ set(libpimcommonakonadi_SRCS
) )
ecm_qt_declare_logging_category(libpimcommonakonadi_SRCS HEADER pimcommonakonadi_debug.h IDENTIFIER PIMCOMMONAKONADI_LOG CATEGORY_NAME org.kde.pim.pimcommonakonadi) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libpimcommonakonadi_SRCS HEADER pimcommonakonadi_debug.h IDENTIFIER PIMCOMMONAKONADI_LOG CATEGORY_NAME org.kde.pim.pimcommonakonadi)
else()
ecm_qt_declare_logging_category(libpimcommonakonadi_SRCS HEADER pimcommonakonadi_debug.h IDENTIFIER PIMCOMMONAKONADI_LOG CATEGORY_NAME org.kde.pim.pimcommonakonadi
DESCRIPTION "kdepim (pimcommonakonadi)"
EXPORT PIMCOMMON
)
endif()
add_library(KF5PimCommonAkonadi ${libpimcommonakonadi_SRCS}) add_library(KF5PimCommonAkonadi ${libpimcommonakonadi_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