Commit 428eb61c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent de0700df
......@@ -102,5 +102,8 @@ if(BUILD_TESTING)
add_subdirectory(tests)
endif()
install(FILES eventviews.renamecategories eventviews.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES eventviews.renamecategories eventviews.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -69,7 +69,16 @@ set(eventviews_LIB_SRCS
kconfig_add_kcfg_files(eventviews_LIB_SRCS prefs_base.kcfgc)
ecm_qt_declare_logging_category(eventviews_LIB_SRCS HEADER calendarview_debug.h IDENTIFIER CALENDARVIEW_LOG CATEGORY_NAME org.kde.pim.calendarview)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(eventviews_LIB_SRCS HEADER calendarview_debug.h IDENTIFIER CALENDARVIEW_LOG CATEGORY_NAME org.kde.pim.calendarview)
else()
ecm_qt_declare_logging_category(eventviews_LIB_SRCS HEADER calendarview_debug.h
IDENTIFIER CALENDARVIEW_LOG
CATEGORY_NAME org.kde.pim.calendarview
OLD_CATEGORY_NAMES log_calendarview
DESCRIPTION "kdepim (eventviews)" EXPORT EVENTVIEWS)
endif()
ki18n_wrap_ui(eventviews_LIB_SRCS
agenda/timescaleedit_base.ui
)
......@@ -227,5 +236,8 @@ install(FILES
)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT EVENTVIEWS FILE eventviews.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
install(FILES agenda/calendardecoration.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR})
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