D27150: Add ecm_qt_install_logging_categories & ecm_qt_export_logging_category

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Tue Feb 4 05:22:42 GMT 2020


kossebau created this revision.
kossebau added reviewers: Build System, Frameworks, broulik, mlaurent.
Herald added projects: Frameworks, Build System.
Herald added subscribers: kde-buildsystem, kde-frameworks-devel.
kossebau requested review of this revision.

REVISION 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.

REPOSITORY
  R240 Extra CMake Modules

BRANCH
  addautomaticcategoriesgeneration

REVISION DETAIL
  https://phabricator.kde.org/D27150

AFFECTED FILES
  modules/ECMQtDeclareLoggingCategory.cmake
  tests/ECMQtDeclareLoggingCategoryTest/CMakeLists.txt
  tests/ECMQtDeclareLoggingCategoryTest/log.categories

To: kossebau, #build_system, #frameworks, broulik, mlaurent
Cc: kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20200204/cac66f72/attachment.html>


More information about the Kde-buildsystem mailing list