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

Autogenerate categories file

parent fe17c751
......@@ -91,6 +91,14 @@ if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
install(FILES kldap.renamecategories kldap.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kldap.renamecategories kldap.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KLDAP
FILE kldap.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(kio_ldap_PART_SRCS kio_ldap.cpp)
ecm_qt_declare_logging_category(kio_ldap_PART_SRCS HEADER kldap_debug.h IDENTIFIER KLDAP_LOG CATEGORY_NAME org.kde.pim.kldap)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kio_ldap_PART_SRCS HEADER kldap_debug.h IDENTIFIER KLDAP_LOG CATEGORY_NAME org.kde.pim.kldap)
else()
ecm_qt_declare_logging_category(kio_ldap_PART_SRCS HEADER kldap_debug.h IDENTIFIER KLDAP_LOG CATEGORY_NAME org.kde.pim.kldap
DESCRIPTION "kioslave (kldap)"
OLD_CATEGORY_NAMES log_kldap
EXPORT KLDAP
)
endif()
add_library(kio_ldap MODULE ${kio_ldap_PART_SRCS})
......
......@@ -43,7 +43,17 @@ set(kldap_LIB_SRCS
ldapconfigwidget.cpp
ldapdn.cpp
)
ecm_qt_declare_logging_category(kldap_LIB_SRCS HEADER ldap_debug.h IDENTIFIER LDAP_LOG CATEGORY_NAME org.kde.pim.ldap)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kldap_LIB_SRCS HEADER ldap_debug.h IDENTIFIER LDAP_LOG CATEGORY_NAME org.kde.pim.ldap)
else()
ecm_qt_declare_logging_category(kldap_LIB_SRCS HEADER ldap_debug.h IDENTIFIER LDAP_LOG CATEGORY_NAME org.kde.pim.ldap
DESCRIPTION "kldaplib (kldap)"
OLD_CATEGORY_NAMES log_ldap
EXPORT KLDAP
)
endif()
add_library(KF5Ldap ${kldap_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