Commit eb40bee5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent b580c419
......@@ -72,7 +72,8 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}
COMPONENT Devel
)
install(FILES kmbox.renamecategories kmbox.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kmbox.renamecategories kmbox.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -4,7 +4,15 @@ set(kmbox_SRCS
mbox.cpp
)
ecm_qt_declare_logging_category(kmbox_SRCS HEADER kmbox_debug.h IDENTIFIER KMBOX_LOG CATEGORY_NAME org.kde.pim.kmbox)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmbox_SRCS HEADER kmbox_debug.h IDENTIFIER KMBOX_LOG CATEGORY_NAME org.kde.pim.kmbox)
else()
ecm_qt_declare_logging_category(kmbox_SRCS HEADER kmbox_debug.h IDENTIFIER KMBOX_LOG CATEGORY_NAME org.kde.pim.kmbox
OLD_CATEGORY_NAMES log_kmbox
DESCRIPTION "kmbox (pim lib)" EXPORT KMBOX)
endif()
add_library(KF5Mbox ${kmbox_SRCS})
......@@ -51,6 +59,8 @@ install(FILES
COMPONENT Devel
)
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KMBOX FILE kmbox.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
ecm_generate_pri_file(BASE_NAME Mbox LIB_NAME KF5Mbox DEPS "Mime" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KMbox)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
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