From 8236e95c765b27edfb7d3ae17635518a0120e029 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sat, 23 Jan 2021 09:23:41 +0100 Subject: [PATCH] Autogenerate categories file --- CMakeLists.txt | 7 +++++-- dolphin.categories | 1 - src/CMakeLists.txt | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 dolphin.categories diff --git a/CMakeLists.txt b/CMakeLists.txt index dc682e2fbf..cb6397f76a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,7 +178,10 @@ ecm_generate_dbus_service_file( ecm_install_configured_files(INPUT plasma-dolphin.service.in DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR}) -install(FILES dolphin.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) - +ecm_qt_install_logging_categories( + EXPORT DOLPHIN + FILE dolphin.categories + DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} + ) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/dolphin.categories b/dolphin.categories deleted file mode 100644 index 8faeb2064a..0000000000 --- a/dolphin.categories +++ /dev/null @@ -1 +0,0 @@ -org.kde.dolphin dolphin IDENTIFIER [DolphinDebug] diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 26e02cfb5c..fd3e771b7a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,7 +117,8 @@ set(dolphinprivate_LIB_SRCS dolphinnewfilemenu.cpp ) -ecm_qt_declare_logging_category(dolphinprivate_LIB_SRCS HEADER dolphindebug.h IDENTIFIER DolphinDebug CATEGORY_NAME org.kde.dolphin) +ecm_qt_declare_logging_category(dolphinprivate_LIB_SRCS HEADER dolphindebug.h IDENTIFIER DolphinDebug CATEGORY_NAME org.kde.dolphin + DESCRIPTION "dolphin" EXPORT DOLPHIN) if(HAVE_BALOO) set(dolphinprivate_LIB_SRCS