Add ecm_qt_install_logging_categories & ecm_qt_export_logging_category

Authored by kossebau on Feb 4 2020, 5:11 AM.

Description

Add ecm_qt_install_logging_categories & ecm_qt_export_logging_category

Summary:
Having to manually maintain a separate copy of all the data about qt logging
categories in the categories files comes with the usual disadvantages.
The new macro ecm_qt_install_logging_categories together with the additions
of arguments DESCRIPTION & EXPORT to ecm_qt_declare_logging_category allows
to have just one place with one copy of the data, and have the categories
file automatically generated from that data, linked via the EXPORT id.

For cases not using ecm_qt_declare_logging_category, but having categories
manually defined in code, yet wanting to have info about those categories in
the installed fiel, ecm_qt_export_logging_category allows to add those data
to the system.

Test Plan:
Added unit tests work, porting of some repos created categories files whose
diff against the manually created files were only the DO_NOT_EDIT header.

Reviewers: Build System, Frameworks, broulik, mlaurent

Reviewed By: mlaurent

Subscribers: kde-frameworks-devel, kde-buildsystem

Tags: Frameworks, Build System

Differential Revision: https://phabricator.kde.org/D27150

Details

Committed
kossebauFeb 10 2020, 11:21 PM
Reviewer
mlaurent
Differential Revision
D27150: Add ecm_qt_install_logging_categories & ecm_qt_export_logging_category
Parents
R240:d8047a4654d0: GIT_SILENT Upgrade ECM version to 5.68.0.
Branches
Unknown
Tags
Unknown