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

Allow to autogenerate categories file

parent fca1ec57
......@@ -90,7 +90,9 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}
COMPONENT Devel
)
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kcalutils.renamecategories kcalutils.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
install(FILES kcalutils.renamecategories kcalutils.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -14,7 +14,14 @@ set(kcalutils_SRCS
grantleetemplatemanager.cpp
qtresourcetemplateloader.cpp
)
ecm_qt_declare_logging_category(kcalutils_SRCS HEADER kcalutils_debug.h IDENTIFIER KCALUTILS_LOG CATEGORY_NAME org.kde.pim.kcalutils)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kcalutils_SRCS HEADER kcalutils_debug.h IDENTIFIER KCALUTILS_LOG CATEGORY_NAME org.kde.pim.kcalutils)
else()
ecm_qt_declare_logging_category(kcalutils_SRCS HEADER kcalutils_debug.h IDENTIFIER KCALUTILS_LOG CATEGORY_NAME org.kde.pim.kcalutils
OLD_CATEGORY_NAMES log_kcalutils
DESCRIPTION "kcalutils (pim lib)" EXPORT KCALUTILS)
endif()
kconfig_add_kcfg_files(kcalutils_SRCS htmlexportsettings.kcfgc)
......@@ -85,6 +92,9 @@ install(FILES
COMPONENT Devel
)
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KCALUTILS FILE kcalutils.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
ecm_generate_pri_file(BASE_NAME KCalUtils LIB_NAME KF5CalendarUtils DEPS "ConfigGui CalendarCore CoreAddons" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KCalUtils)
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