Commit 62e3c515 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 72fd4d35
......@@ -86,6 +86,14 @@ install(FILES
add_subdirectory(src)
install(FILES libkdepim.categories libkdepim.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES libkdepim.categories libkdepim.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT LIBKDEPIM
FILE libkdepim.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -43,7 +43,16 @@ set(kdepim_ldap_LIB_SRCS
ldap/addhostdialog.cpp
ldap/ldapconfigurewidget.cpp
)
ecm_qt_declare_logging_category(kdepim_ldap_LIB_SRCS HEADER ldapclient_debug.h IDENTIFIER LDAPCLIENT_LOG CATEGORY_NAME org.kde.pim.ldapclient)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kdepim_ldap_LIB_SRCS HEADER ldapclient_debug.h IDENTIFIER LDAPCLIENT_LOG CATEGORY_NAME org.kde.pim.ldapclient)
else()
ecm_qt_declare_logging_category(kdepim_ldap_LIB_SRCS HEADER ldapclient_debug.h IDENTIFIER LDAPCLIENT_LOG CATEGORY_NAME org.kde.pim.ldapclient
DESCRIPTION "ldapclient (libkdepim)"
OLD_CATEGORY_NAMES log_ldapclient
EXPORT LIBKDEPIM
)
endif()
set(kdepim_misc_LIB_SRCS
misc/broadcaststatus.cpp
......@@ -74,7 +83,16 @@ set(kdepim_LIB_SRCS
${kdepim_addressline_LIB_SRCS}
prefs/kprefsdialog.cpp
)
ecm_qt_declare_logging_category(kdepim_LIB_SRCS HEADER libkdepim_debug.h IDENTIFIER LIBKDEPIM_LOG CATEGORY_NAME org.kde.pim.libkdepim)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kdepim_LIB_SRCS HEADER libkdepim_debug.h IDENTIFIER LIBKDEPIM_LOG CATEGORY_NAME org.kde.pim.libkdepim)
else()
ecm_qt_declare_logging_category(kdepim_LIB_SRCS HEADER libkdepim_debug.h IDENTIFIER LIBKDEPIM_LOG CATEGORY_NAME org.kde.pim.libkdepim
DESCRIPTION "libkdepim (libkdepim)"
OLD_CATEGORY_NAMES log_libkdepim
EXPORT LIBKDEPIM
)
endif()
add_library(KF5Libkdepim ${kdepim_LIB_SRCS})
......
......@@ -75,8 +75,15 @@ set(kdepimakonadi_LIB_SRCS
${kdepim_addressline_plugin_LIB_SRCS}
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kdepimakonadi_LIB_SRCS HEADER libkdepimakonadi_debug.h IDENTIFIER LIBKDEPIMAKONADI_LOG CATEGORY_NAME org.kde.pim.libkdepimakonadi)
else()
ecm_qt_declare_logging_category(kdepimakonadi_LIB_SRCS HEADER libkdepimakonadi_debug.h IDENTIFIER LIBKDEPIMAKONADI_LOG CATEGORY_NAME org.kde.pim.libkdepimakonadi
DESCRIPTION "libkdepimakonadi (libkdepim)"
EXPORT LIBKDEPIM
)
endif()
ecm_qt_declare_logging_category(kdepimakonadi_LIB_SRCS HEADER libkdepimakonadi_debug.h IDENTIFIER LIBKDEPIMAKONADI_LOG CATEGORY_NAME org.kde.pim.libkdepimakonadi)
add_library(KF5LibkdepimAkonadi ${kdepimakonadi_LIB_SRCS})
......
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