Commit 8145b7e3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories files

parent 33f03d12
...@@ -115,6 +115,9 @@ endif () ...@@ -115,6 +115,9 @@ endif ()
add_subdirectory(src) add_subdirectory(src)
install(FILES accountwizard.renamecategories accountwizard.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES accountwizard.renamecategories accountwizard.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -35,7 +35,15 @@ ki18n_wrap_ui(accountwizard_srcs ...@@ -35,7 +35,15 @@ ki18n_wrap_ui(accountwizard_srcs
ui/personaldatapage.ui ui/personaldatapage.ui
ui/cryptopage.ui ui/cryptopage.ui
) )
ecm_qt_declare_logging_category(accountwizard_srcs HEADER accountwizard_debug.h IDENTIFIER ACCOUNTWIZARD_LOG CATEGORY_NAME org.kde.pim.accountwizard)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(accountwizard_srcs HEADER accountwizard_debug.h IDENTIFIER ACCOUNTWIZARD_LOG CATEGORY_NAME org.kde.pim.accountwizard)
else()
ecm_qt_declare_logging_category(accountwizard_srcs HEADER accountwizard_debug.h IDENTIFIER ACCOUNTWIZARD_LOG CATEGORY_NAME org.kde.pim.accountwizard
OLD_CATEGORY_NAMES log_accountwizard
DESCRIPTION "accountwizard (accountwizard)" EXPORT ACCOUNTWIZARD)
endif()
set(accountwizard_libs set(accountwizard_libs
KF5::AkonadiCore KF5::AkonadiCore
...@@ -88,3 +96,6 @@ if (BUILD_TESTING) ...@@ -88,3 +96,6 @@ if (BUILD_TESTING)
add_subdirectory(autotests) add_subdirectory(autotests)
endif() endif()
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT ACCOUNTWIZARD FILE accountwizard.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
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