Commit 8ab62a52 authored by Volker Krause's avatar Volker Krause
Browse files

Use logging category file auto-generation macro

This has the welcome side-effect of doing the right thing on Android.
parent 54da1a48
......@@ -109,7 +109,13 @@ target_sources(KPublicTransport PRIVATE
networks/networks.qrc
networks/certs/network_certs.qrc
)
ecm_qt_declare_logging_category(KPublicTransport HEADER logging.h IDENTIFIER KPublicTransport::Log CATEGORY_NAME org.kde.kpublictransport)
ecm_qt_declare_logging_category(KPublicTransport
HEADER logging.h
IDENTIFIER KPublicTransport::Log
CATEGORY_NAME org.kde.kpublictransport
DESCRIPTION "KPublicTransport"
EXPORT KPUBLICTRANSPORT
)
generate_export_header(KPublicTransport BASE_NAME KPublicTransport)
set_target_properties(KPublicTransport PROPERTIES
......@@ -193,7 +199,11 @@ ecm_generate_headers(KPublicTransport_Models_FORWARDING_HEADERS
)
install(TARGETS KPublicTransport EXPORT KPublicTransportTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES org_kde_kpublictransport.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ecm_qt_install_logging_categories(
EXPORT KPUBLICTRANSPORT
FILE org_kde_kpublictransport.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
install(FILES
${KPublicTransport_FORWARDING_HEADERS}
${KPublicTransport_Datatypes_FORWARDING_HEADERS}
......
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: none
org.kde.kpublictransport KPublicTransport IDENTIFIER [KPublicTransport::Log]
Supports Markdown
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