D19567: KCONFIG_ADD_KCFG_FILES macro: ensure a change of File= in kcfg is picked up

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Wed Mar 6 14:44:37 GMT 2019


kossebau created this revision.
kossebau added a reviewer: Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
kossebau requested review of this revision.

REVISION SUMMARY
  The build configuration depends on the value of the "File=" entry in the
  kcfg file, as this file name is used in the build instructions.
  So if the name is changed, cmake would need to be rerun.
  Adding the kcfgc file to CMAKE_CONFIGURE_DEPENDS makes cmake know about that
  dependency.
  While this will also result in a reconfiguarion if non-File entries are
  edited, this should not happen too often, so the extra costs outweighs the
  unexpected and confusing behaviour due to outdated build instructions
  in case the File= entry is changed.

TEST PLAN
  Before this change renaming a kcfg file before did not trigger a rerun of cmake,
  resulting in outdated builds instructions and unexpected behaviour.
  With this change cmake is rerun once the kcgc file is edited, so build
  instructions are always up-to-date.

REPOSITORY
  R237 KConfig

BRANCH
  reruncmakeonkfgcchange

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

AFFECTED FILES
  KF5ConfigMacros.cmake

To: kossebau, #frameworks
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190306/8271bf80/attachment.html>


More information about the Kde-frameworks-devel mailing list