Add depfile support to qsb
This adds the new option '--depfile' to qsb tool. The tool now supports
generating of gcc depfiles based on the '#include' statements found in
the shader files. The generated depfile it then passed to the CMake
add_custom_command command that calls qsb to control changes in the
shader includes.
Change-Id: I6330fbaaef35cb294f1e3ce7a3054f836fe986db
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
| commit | 559fbc4f8166cf1e1a1a953fb2f40c1194c76538 |
| parent | 1890c671fb1269a050f645021facfa492d3bfd0e |
| author | Alexey Edelev <alexey.edelev@qt.io> |
| committer | Alexey Edelev <alexey.edelev@qt.io> |
| commit time | Wed, 28 Feb 2024 09:46:25 +0100 |
- M tests/auto/CMakeLists.txt
- A tests/auto/qsbdepfiles/CMakeLists.txt
- A tests/auto/qsbdepfiles/data/tst.frag.qsb.d.in
- A tests/auto/qsbdepfiles/data/tstinclude.frag.qsb.d.in
- A tests/auto/qsbdepfiles/data/tstincludecomment.frag.qsb.d.in
- A tests/auto/qsbdepfiles/data/tstincluderelative.frag.qsb.d.in
- A tests/auto/qsbdepfiles/data/tstincludewhitespaces.frag.qsb.d.in
- A tests/auto/qsbdepfiles/shaders/common.glsl
- A tests/auto/qsbdepfiles/shaders/inner/common2.glsl
- A tests/auto/qsbdepfiles/shaders/tst.frag
- A tests/auto/qsbdepfiles/shaders/tstinclude.frag
- A tests/auto/qsbdepfiles/shaders/tstincludecomment.frag
- A tests/auto/qsbdepfiles/shaders/tstincluderelative.frag
- A tests/auto/qsbdepfiles/shaders/tstincludewhitespaces.frag
- A tests/auto/qsbdepfiles/tst_qsbdepfiles.cpp
- M tools/qsb/Qt6ShaderToolsMacros.cmake
- M tools/qsb/qsb.cpp