Skip to content

Ninja: Add support for ADDITIONAL_NINJA_CLEAN_FILES directory property

This topic branch adds support for the directory property ADDITIONAL_NINJA_CLEAN_FILES, which allows to register additional files that should be removed by the ninja clean target.

Included are implementation, documentation and release notes for ADDITIONAL_NINJA_CLEAN_FILES.

Furthermore this brings cleanups for the Ninja generator code to

  • simplify methods
  • inline for range loop range arguments
  • optimize string compositions
  • use std::unique_ptr instead of raw pointers

The new ADDITIONAL_NINJA_CLEAN_FILES directory is required to address issue

  • #17074 (closed) "Autogen: clean target with ninja generator doesn’t clean autogen files".

The issue will be fixed in another MR.

Merge request reports