D10693: Help automoc to find metadata JSON files referenced in the code

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Tue Feb 20 18:21:46 UTC 2018


kossebau created this revision.
kossebau added reviewers: KDevelop, apol, kfunk.
Restricted Application added a subscriber: kdevelop-devel.
kossebau requested review of this revision.

REVISION SUMMARY
  automoc by itself can only detect metadata files referenced by direct
  usage of the Q_PLUGIN_METADATA macro. It does not do any C++ preprocessor
  evaluation. Instead it needs to be helped with regexp-based filter rules for
  detecting any names of files used as additional moc input.
  Cmp. AUTOMOC_DEPEND_FILTERS for further details.

TEST PLAN
  Changing a JSON file and running make results in the related *.moc file being
  regenerated and the related object file being recompiled.
  qtplugininfo

REPOSITORY
  R32 KDevelop

BRANCH
  useCMAKE_AUTOMOC_DEPEND_FILTERS

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

AFFECTED FILES
  CMakeLists.txt

To: kossebau, #kdevelop, apol, kfunk
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180220/e2f37980/attachment.html>


More information about the KDevelop-devel mailing list