From: Laurent Montel Date: Sat, 23 Jan 2021 08:23:41 +0000 (+0100) Subject: Autogenerate categories file X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/8236e95c765b27edfb7d3ae17635518a0120e029?ds=sidebyside Autogenerate categories file --- diff --git a/CMakeLists.txt b/CMakeLists.txt index dc682e2fb..cb6397f76 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 8faeb2064..000000000 --- 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 26e02cfb5..fd3e771b7 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