Commit 26e01698 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 66eab01b
......@@ -145,7 +145,16 @@ if(BUILD_TESTING)
add_subdirectory(tests)
add_subdirectory(autotests)
endif()
install(FILES kleopatra.renamecategories kleopatra.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kleopatra.renamecategories kleopatra.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KLEOPATRA
FILE kleopatra.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
if(KF5DocTools_FOUND)
add_subdirectory(doc)
......
......@@ -256,7 +256,16 @@ else()
set (_kleopatra_SRCS conf/kleopageconfigdialog.cpp ${_kleopatra_SRCS})
endif()
ecm_qt_declare_logging_category(_kleopatra_SRCS HEADER kleopatra_debug.h IDENTIFIER KLEOPATRA_LOG CATEGORY_NAME org.kde.pim.kleopatra)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(_kleopatra_SRCS HEADER kleopatra_debug.h IDENTIFIER KLEOPATRA_LOG CATEGORY_NAME org.kde.pim.kleopatra)
else()
ecm_qt_declare_logging_category(_kleopatra_SRCS HEADER kleopatra_debug.h IDENTIFIER KLEOPATRA_LOG CATEGORY_NAME org.kde.pim.kleopatra
DESCRIPTION "kleopatra (kleopatra)"
OLD_CATEGORY_NAMES log_kleopatra
EXPORT KLEOPATRA
)
endif()
if(KLEO_MODEL_TEST)
add_definitions(-DKLEO_MODEL_TEST)
......
......@@ -17,7 +17,16 @@ set(kwatchgnupg_SRCS
main.cpp
)
ecm_qt_declare_logging_category(kwatchgnupg_SRCS HEADER kwatchgnupg_debug.h IDENTIFIER KWATCHGNUPG_LOG CATEGORY_NAME org.kde.pim.kwatchgnupg)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kwatchgnupg_SRCS HEADER kwatchgnupg_debug.h IDENTIFIER KWATCHGNUPG_LOG CATEGORY_NAME org.kde.pim.kwatchgnupg)
else()
ecm_qt_declare_logging_category(kwatchgnupg_SRCS HEADER kwatchgnupg_debug.h IDENTIFIER KWATCHGNUPG_LOG CATEGORY_NAME org.kde.pim.kwatchgnupg
DESCRIPTION "kwatchgnupg (kwatchgnupg)"
OLD_CATEGORY_NAMES log_kwatchgnupg
EXPORT KLEOPATRA
)
endif()
qt5_add_resources(kwatchgnupg_SRCS kwatchgnupg.qrc)
if(WIN32)
......
......@@ -8,7 +8,16 @@ else()
set(_kleopatraclientcore_extra_SRCS)
endif()
ecm_qt_declare_logging_category(_kleopatraclientcore_common_SRCS HEADER libkleopatraclientcore_debug.h IDENTIFIER LIBKLEOPATRACLIENTCORE_LOG CATEGORY_NAME org.kde.pim.libkleopatraclientcore)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(_kleopatraclientcore_common_SRCS HEADER libkleopatraclientcore_debug.h IDENTIFIER LIBKLEOPATRACLIENTCORE_LOG CATEGORY_NAME org.kde.pim.libkleopatraclientcore)
else()
ecm_qt_declare_logging_category(_kleopatraclientcore_common_SRCS HEADER libkleopatraclientcore_debug.h IDENTIFIER LIBKLEOPATRACLIENTCORE_LOG CATEGORY_NAME org.kde.pim.libkleopatraclientcore
DESCRIPTION "kleopatra (kleopatra)"
OLD_CATEGORY_NAMES log_libkleopatraclientcore
EXPORT KLEOPATRA
)
endif()
add_library(kleopatraclientcore
${_kleopatraclientcore_extra_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