Commit 71083d0a authored by Volker Krause's avatar Volker Krause
Browse files

Port to the new logging category macros

Not reducing the needed code, but doing the right thing on Android
automatically.
parent d680125d
Pipeline #79022 passed with stage
in 18 seconds
......@@ -20,12 +20,8 @@ bison_target(mapcssparser
add_flex_bison_dependency(mapcssscanner mapcssparser)
set_source_files_properties(${BISON_mapcssparser_OUTPUTS} ${FLEX_mapcssscanner_OUTPUTS} PROPERTIES SKIP_AUTOMOC ON)
ecm_qt_declare_logging_category(logging_srcs HEADER logging.h IDENTIFIER KOSMIndoorMap::Log CATEGORY_NAME org.kde.kosmindoormap)
ecm_qt_declare_logging_category(logging_srcs HEADER render-logging.h IDENTIFIER KOSMIndoorMap::RenderLog CATEGORY_NAME org.kde.kosmindoormap.renderer)
ecm_qt_declare_logging_category(logging_srcs HEADER reassembly-logging.h IDENTIFIER KOSMIndoorMap::ReassemblyLog CATEGORY_NAME org.kde.kosmindoormap.reassembly)
add_library(KOSMIndoorMap
${logging_srcs}
add_library(KOSMIndoorMap)
target_sources(KOSMIndoorMap PRIVATE
assets/assets.qrc
content/equipmentmodel.cpp
......@@ -68,6 +64,28 @@ add_library(KOSMIndoorMap
${FLEX_mapcssscanner_OUTPUTS}
)
ecm_qt_declare_logging_category(KOSMIndoorMap
HEADER logging.h
IDENTIFIER KOSMIndoorMap::Log
CATEGORY_NAME org.kde.kosmindoormap
DESCRIPTION "KOSMIndoorMap"
EXPORT KOSMINDOORMAP
)
ecm_qt_declare_logging_category(KOSMIndoorMap
HEADER render-logging.h
IDENTIFIER KOSMIndoorMap::RenderLog
CATEGORY_NAME org.kde.kosmindoormap.renderer
DESCRIPTION "KOSMIndoorMap (Rendering)"
EXPORT KOSMINDOORMAP
)
ecm_qt_declare_logging_category(KOSMIndoorMap
HEADER reassembly-logging.h
IDENTIFIER KOSMIndoorMap::ReassemblyLog
CATEGORY_NAME org.kde.kosmindoormap.reassembly
DESCRIPTION "KOSMIndoorMap (Geometry Reassembly)"
EXPORT KOSMINDOORMAP
)
generate_export_header(KOSMIndoorMap BASE_NAME KOSMIndoorMap)
set_target_properties(KOSMIndoorMap PROPERTIES
VERSION ${KOSMINDOORMAP_VERSION}
......@@ -150,4 +168,8 @@ install(FILES
${CMAKE_CURRENT_BINARY_DIR}/kosmindoormap_export.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kosmindoormap
)
install(FILES org_kde_kosmindoormap.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ecm_qt_install_logging_categories(
EXPORT KOSMINDOORMAP
FILE org_kde_kosmindoormap.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: none
org.kde.kosmindoormap KOSMIndoorMap IDENTIFIER [KOSMIndoorMap::Log]
org.kde.kosmindoormap.renderer KOSMIndoorMap (Rendering) IDENTIFIER [KOSMIndoorMap::RenderLog]
org.kde.kosmindoormap.reassembly KOSMIndoorMap (Geometry Reassembly) IDENTIFIER [KOSMIndoorMap::ReassemblyLog]
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