Commit 499a545f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent f4b21572
...@@ -83,7 +83,7 @@ install(FILES ...@@ -83,7 +83,7 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
) )
install(FILES kimap.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kimap.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) install(FILES kimap.categories kimap.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -49,7 +49,14 @@ set(kimap_SRCS ...@@ -49,7 +49,14 @@ set(kimap_SRCS
unsubscribejob.cpp unsubscribejob.cpp
) )
ecm_qt_declare_logging_category(kimap_SRCS HEADER kimap_debug.h IDENTIFIER KIMAP_LOG CATEGORY_NAME org.kde.pim.kimap) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kimap_SRCS HEADER kimap_debug.h IDENTIFIER KIMAP_LOG CATEGORY_NAME org.kde.pim.kimap)
else()
ecm_qt_declare_logging_category(kimap_SRCS HEADER kimap_debug.h IDENTIFIER KIMAP_LOG CATEGORY_NAME org.kde.pim.kimap
OLD_CATEGORY_NAMES log_kimap
DESCRIPTION "kimap (pim lib)" EXPORT KIMAP)
endif()
add_library(KF5IMAP ${kimap_SRCS}) add_library(KF5IMAP ${kimap_SRCS})
...@@ -147,6 +154,8 @@ install(FILES ...@@ -147,6 +154,8 @@ install(FILES
COMPONENT Devel COMPONENT Devel
) )
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KIMAP FILE kimap.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
ecm_generate_pri_file(BASE_NAME KIMAP LIB_NAME KF5IMAP DEPS "Mime" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KIMAP) ecm_generate_pri_file(BASE_NAME KIMAP LIB_NAME KF5IMAP DEPS "Mime" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KIMAP)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR}) 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