<table><tr><td style="">kossebau created this revision.<br />kossebau added reviewers: Frameworks, Build System, apol.<br />Restricted Application added a project: Frameworks.<br />kossebau requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10724" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>automoc by itself can only detect metadata files referenced by direct<br />
usage of the Q_PLUGIN_METADATA macro. It does not do any C++ preprocessor<br />
evaluation. Instead it needs to be helped with regexp-based filter rules<br />
for detecting any names of files used as additional moc input.<br />
See docs for AUTOMOC_DEPEND_FILTERS for further details.</p>
<p>In the near future all the boilerplate code should be replaced with a yet to<br />
be designed ECM macro. For now explicit code is used to collect use cases<br />
for the macro and still to fix the issue already.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Changing a JSON file (or for those generated from .desktop files<br />
changing that one) and running make results in the related *.moc file<br />
being regenerated and the related object file being recompiled.<br />
qtplugininfo shows that the created plugin binary has up-to-date JSON<br />
content.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>BRANCH</strong><div><div>useCMAKE_AUTOMOC_DEPEND_FILTERS</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10724" rel="noreferrer">https://phabricator.kde.org/D10724</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
KF5CoreAddonsConfig.cmake.in</div></div></div><br /><div><strong>To: </strong>kossebau, Frameworks, Build System, apol<br /><strong>Cc: </strong>michaelh<br /></div>