While updating the translation source file for Transifex after #31296, I noticed that headers are not processed by the extract_strings_qt.py
script.
Adding headers to build targets’ sources doesn’t seem like a good solution, because it would be hard to maintain, as CMake does not require the presence of headers in a target’s sources.
Notably, the translate
build target differs from others in the following ways:
- It is intended to be used only during the release process.
- It modifies files in the source tree that are meant to be committed to the repository.
- No other build targets depend on it.
Considering the above, we can safely collect input files for processing by extract_strings_qt.py
using the file(GLOB_RECURSE ...)
command.
Required for #33193.