[Qt-creator] Disable QBS project caching
Christian Kandeler
christian.kandeler at theqtcompany.com
Wed Jan 21 10:29:49 CET 2015
> I'm tuning to move my codebase to qbs and qt creator.
> I've noticed that if I generate any property that belongs to Product in
> .qbs file by JS script it's going to be cached by QtCreator.
> The only one way to force reload the cache is change something in the
> .qbs file.
>
> Simple example is:
> Product {
> files: {
> return JSON.parse(projectInfo.readAll()).files;
> }
> }
>
> Is there any way to force QtCreator re-execute all .qbs files in the
> project?
Is projectInfo a file? If so, you could call lastModified() on it. On
the next reparse, qbs will compare the results of that call and re-parse
the project if they differ.
Christian
More information about the Qt-creator
mailing list