Skip to content
Snippets Groups Projects
  1. Aug 18, 2020
  2. Aug 12, 2020
  3. Aug 11, 2020
  4. Aug 10, 2020
  5. Aug 07, 2020
  6. Aug 06, 2020
  7. Aug 05, 2020
  8. Aug 03, 2020
    • alcroito's avatar
      AutoGen: Add test to check for correct AutoMoc dependencies · 7445c9a5
      alcroito authored
      When using Qt 5.15.0 or above together with Ninja, check that touching
      a source file of a dependency does not needlessly re-run AUTOMOC for
      the dependee target.
      7445c9a5
    • alcroito's avatar
      AutoGen: Fix over-specified direct dependencies of custom command · a79056bb
      alcroito authored
      The AutoMoc timestamp creating custom command explicitly depended
      on all dependencies of the origin target (associated to the AutoGen
      target).
      
      When an origin target depended on a shared library 'libfoo.so',
      if it was re-linked, the AutoMoc custom command would touch its
      output timestamp file, and thus cause needless rebuilding of sources,
      despite the shared library not having any influence on the AutoMoc
      generated files.
      
      Introduce a new '<target>_autogen_timestamp_deps' utility target,
      which will serve as an 'order-only' dependency for the custom command.
      
      This will prevent needless rebuilding, because touching 'libfoo.so'
      will not cause the custom command to be re-executed.
      
      The new AutoMoc dependency tree looks like:
          '_autogen_timestamp_deps (serves as order-only dep)'
       <- '<target_autogen>/timestamp' file ( + moc deps file)
       <- '<target>_autogen' target.
      
      Fixes: #21020
      a79056bb
Loading