Commit 6d3544ee authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories files

parent f9d5da79
...@@ -80,6 +80,14 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kontact\") ...@@ -80,6 +80,14 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kontact\")
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(kconf_update) add_subdirectory(kconf_update)
install(FILES kontact.renamecategories kontact.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kontact.renamecategories kontact.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KONTACT
FILE kontact.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc) add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -16,7 +16,16 @@ set(kontactprivate_LIB_SRCS ...@@ -16,7 +16,16 @@ set(kontactprivate_LIB_SRCS
aboutdialog.cpp aboutdialog.cpp
kontactconfiguredialog.cpp kontactconfiguredialog.cpp
) )
ecm_qt_declare_logging_category(kontactprivate_LIB_SRCS HEADER kontact_debug.h IDENTIFIER KONTACT_LOG CATEGORY_NAME org.kde.pim.kontact)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kontactprivate_LIB_SRCS HEADER kontact_debug.h IDENTIFIER KONTACT_LOG CATEGORY_NAME org.kde.pim.kontact)
else()
ecm_qt_declare_logging_category(kontactprivate_LIB_SRCS HEADER kontact_debug.h IDENTIFIER KONTACT_LOG CATEGORY_NAME org.kde.pim.kontact
DESCRIPTION "kontact (kontact application)"
OLD_CATEGORY_NAMES log_kontact
EXPORT KONTACT
)
endif()
kconfig_add_kcfg_files(kontactprivate_LIB_SRCS prefs.kcfgc) kconfig_add_kcfg_files(kontactprivate_LIB_SRCS prefs.kcfgc)
qt5_add_resources(kontactprivate_LIB_SRCS kontact.qrc) qt5_add_resources(kontactprivate_LIB_SRCS kontact.qrc)
......
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