Commit 5a8aec30 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 5748b7dc
......@@ -66,6 +66,14 @@ add_definitions(-DQT_NO_FOREACH)
add_subdirectory(src)
install(FILES mailimporter.renamecategories mailimporter.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES mailimporter.renamecategories mailimporter.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT MAILIMPORTER
FILE mailimporter.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -65,7 +65,15 @@ set(libmailimporter_SRCS
ki18n_wrap_ui(libmailimporter_SRCS ui/importmailswidget.ui ui/selectthunderbirdprofilewidget.ui)
ecm_qt_declare_logging_category(libmailimporter_SRCS HEADER mailimporter_debug.h IDENTIFIER MAILIMPORTER_LOG CATEGORY_NAME org.kde.pim.mailimporter)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libmailimporter_SRCS HEADER mailimporter_debug.h IDENTIFIER MAILIMPORTER_LOG CATEGORY_NAME org.kde.pim.mailimporter)
else()
ecm_qt_declare_logging_category(libmailimporter_SRCS HEADER mailimporter_debug.h IDENTIFIER MAILIMPORTER_LOG CATEGORY_NAME org.kde.pim.mailimporter
DESCRIPTION "mailimporter (mailimporter)"
OLD_CATEGORY_NAMES log_mailimporter
EXPORT MAILIMPORTER
)
endif()
add_library(KF5MailImporter
${libmailimporter_SRCS}
......
......@@ -31,7 +31,16 @@ set(libmailimporterakonadi_SRCS
filterimporterakonadi.cpp
)
ecm_qt_declare_logging_category(libmailimporterakonadi_SRCS HEADER mailimporterakonadi_debug.h IDENTIFIER MAILIMPORTERAKONADI_LOG CATEGORY_NAME org.kde.pim.mailimporterakonadi)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libmailimporterakonadi_SRCS HEADER mailimporterakonadi_debug.h IDENTIFIER MAILIMPORTERAKONADI_LOG CATEGORY_NAME org.kde.pim.mailimporterakonadi)
else()
ecm_qt_declare_logging_category(libmailimporterakonadi_SRCS HEADER mailimporterakonadi_debug.h IDENTIFIER MAILIMPORTERAKONADI_LOG CATEGORY_NAME org.kde.pim.mailimporterakonadi
DESCRIPTION "mailimporterakonadi (mailimporter)"
EXPORT MAILIMPORTER
)
endif()
add_library(KF5MailImporterAkonadi
${libmailimporterakonadi_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