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

Autogenerate categories file

parent 2310e5db
......@@ -148,7 +148,15 @@ set(CMAKE_CXX_STANDARD 14)
add_subdirectory(src)
add_subdirectory(korgac)
install(FILES korganizer.renamecategories korganizer.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES korganizer.renamecategories korganizer.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KORGANIZER
FILE korganizer.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -12,8 +12,15 @@ endif()
set(korgac_SRCS
koalarmclient.cpp
)
ecm_qt_declare_logging_category(korgac_SRCS HEADER koalarmclient_debug.h IDENTIFIER KOALARMCLIENT_LOG CATEGORY_NAME org.kde.pim.koalarmclient)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(korgac_SRCS HEADER koalarmclient_debug.h IDENTIFIER KOALARMCLIENT_LOG CATEGORY_NAME org.kde.pim.koalarmclient)
else()
ecm_qt_declare_logging_category(korgac_SRCS HEADER koalarmclient_debug.h IDENTIFIER KOALARMCLIENT_LOG CATEGORY_NAME org.kde.pim.koalarmclient
DESCRIPTION "korganizer (koalarmclient)"
OLD_CATEGORY_NAMES log_koalarmclient
EXPORT KORGANIZER
)
endif()
set(korgac_SRCS ${korgac_SRCS} korgacmain.cpp)
......
......@@ -19,7 +19,16 @@ add_subdirectory(kconf_update)
########### next target ###############
set(korganizer_common_SRCS)
ecm_qt_declare_logging_category(korganizer_common_SRCS HEADER korganizer_debug.h IDENTIFIER KORGANIZER_LOG CATEGORY_NAME org.kde.pim.korganizer)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(korganizer_common_SRCS HEADER korganizer_debug.h IDENTIFIER KORGANIZER_LOG CATEGORY_NAME org.kde.pim.korganizer)
else()
ecm_qt_declare_logging_category(korganizer_common_SRCS HEADER korganizer_debug.h IDENTIFIER KORGANIZER_LOG CATEGORY_NAME org.kde.pim.korganizer
DESCRIPTION "korganizer (korganizer)"
OLD_CATEGORY_NAMES log_korganizer
EXPORT KORGANIZER
)
endif()
set(korganizer_SRCS
main.cpp
......
########### next target ###############
set(libcommon_SRCS korg_uniqueapp.cpp)
ecm_qt_declare_logging_category(libcommon_SRCS HEADER korganizerplugin_debug.h IDENTIFIER KORGANIZERPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_plugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libcommon_SRCS HEADER korganizerplugin_debug.h IDENTIFIER KORGANIZERPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_plugin)
else()
ecm_qt_declare_logging_category(libcommon_SRCS HEADER korganizerplugin_debug.h IDENTIFIER KORGANIZERPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_plugin
DESCRIPTION "korganizer (korganizer kontact plugins)"
OLD_CATEGORY_NAMES log_korganizer_plugin
EXPORT KORGANIZER
)
endif()
set(kontact_korganizerplugin_PART_SRCS korganizerplugin.cpp apptsummarywidget.cpp summaryeventinfo.cpp ${libcommon_SRCS})
......
......@@ -3,8 +3,16 @@
set(kontact_specialdatesplugin_PART_SRCS specialdates_plugin.cpp sdsummarywidget.cpp)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kontact_specialdatesplugin_PART_SRCS HEADER korganizer_kontactplugins_specialdates_debug.h IDENTIFIER KORGANIZER_KONTACTPLUGINS_SPECIALDATES_LOG CATEGORY_NAME org.kde.pim.korganizer_kontactplugins_specialdates)
else()
ecm_qt_declare_logging_category(kontact_specialdatesplugin_PART_SRCS HEADER korganizer_kontactplugins_specialdates_debug.h IDENTIFIER KORGANIZER_KONTACTPLUGINS_SPECIALDATES_LOG CATEGORY_NAME org.kde.pim.korganizer_kontactplugins_specialdates
DESCRIPTION "korganizer (kontactplugins korganizer special dates)"
OLD_CATEGORY_NAMES log_korganizer_kontactplugins_specialdates
EXPORT KORGANIZER
)
endif()
ecm_qt_declare_logging_category(kontact_specialdatesplugin_PART_SRCS HEADER korganizer_kontactplugins_specialdates_debug.h IDENTIFIER KORGANIZER_KONTACTPLUGINS_SPECIALDATES_LOG CATEGORY_NAME org.kde.pim.korganizer_kontactplugins_specialdates)
add_library(kontact_specialdatesplugin MODULE ${kontact_specialdatesplugin_PART_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