Commit 34d03bb0 authored by Volker Krause's avatar Volker Krause
Browse files

Move to auto-generating the logging categories file

Not really less code, but does the right thing on Android by default.
parent 5d5aaedf
Pipeline #79474 passed with stage
in 14 minutes and 20 seconds
......@@ -144,7 +144,6 @@ install(EXPORT KPimItineraryTargets
FILE KPimItineraryTargets.cmake
NAMESPACE KPim::
)
install(FILES org_kde_kitinerary.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kitinerary_version.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR_PIM} COMPONENT Devel)
......
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: none
org.kde.kitinerary KItinerary IDENTIFIER [KItinerary::Log]
org.kde.kitinerary.comparator KItinerary Comparison/Merging Logging IDENTIFIER [KItinerary::CompareLog]
org.kde.kitinerary.extractorValidator KItinerary Extractor Validator Logging IDENTIFIER [KItinerary::ValidatorLog]
......@@ -127,9 +127,27 @@ target_sources(KPimItinerary PRIVATE
stringutil.cpp
)
kde_source_files_enable_exceptions(barcodedecoder.cpp qimagepurebinarizer.cpp)
ecm_qt_declare_logging_category(KPimItinerary HEADER logging.h IDENTIFIER KItinerary::Log CATEGORY_NAME org.kde.kitinerary)
ecm_qt_declare_logging_category(KPimItinerary HEADER compare-logging.h IDENTIFIER KItinerary::CompareLog CATEGORY_NAME org.kde.kitinerary.comparator)
ecm_qt_declare_logging_category(KPimItinerary HEADER validator-logging.h IDENTIFIER KItinerary::ValidatorLog CATEGORY_NAME org.kde.kitinerary.extractorValidator)
ecm_qt_declare_logging_category(KPimItinerary
HEADER logging.h
IDENTIFIER KItinerary::Log
CATEGORY_NAME org.kde.kitinerary
DESCRIPTION "KItinerary"
EXPORT KITINERARY
)
ecm_qt_declare_logging_category(KPimItinerary
HEADER compare-logging.h
IDENTIFIER KItinerary::CompareLog
CATEGORY_NAME org.kde.kitinerary.comparator
DESCRIPTION "KItinerary Comparison/Merging Logging"
EXPORT KITINERARY
)
ecm_qt_declare_logging_category(KPimItinerary
HEADER validator-logging.h
IDENTIFIER KItinerary::ValidatorLog
CATEGORY_NAME org.kde.kitinerary.extractorValidator
DESCRIPTION "KItinerary Extractor Validator Logging"
EXPORT KITINERARY
)
generate_export_header(KPimItinerary BASE_NAME KItinerary)
set_target_properties(KPimItinerary PROPERTIES
......@@ -334,6 +352,11 @@ if (NOT ANDROID)
install(FILES application-vnd-kde-itinerary.xml DESTINATION ${KDE_INSTALL_MIMEDIR})
update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR})
endif()
ecm_qt_install_logging_categories(
EXPORT KITINERARY
FILE org_kde_kitinerary.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
if (BUILD_QCH)
ecm_add_qch(
......
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