[Qbs] dependency tracking

Christian Kandeler christian.kandeler at qt.io
Wed Sep 16 12:19:58 CEST 2020

On Tue, 15 Sep 2020 22:10:13 +0500
Dan Pat <dannix84 at gmail.com> wrote:

> "testinput.h" file contains "#include "a.h" directive. Changing
> testinput.h results in a generator run followed by a C++ compiler run.
> Changing a.h results in no action, although in this case the generator
> is intended to reprocess its input.

It's expected that the generator won't re-run, because the dependency parsing happens when building a cpp file, i.e. all the headers are dependencies of the object file, and the header files themselves are only "passed through" by the scanning process. Though you might be able to cheat by setting up a dummy cpp file that includes the top-level header and making that an input to the generator rule.


More information about the Qbs mailing list