[QBS] Qbs IncrediBuild in QtCreator

Thomas Epting thomas.epting.stryker at gmail.com
Tue Jul 22 09:06:45 CEST 2014

Hi everyone,

I want to create a solution for Qbs builds using the "IncrediBuild" build
accelerator from within QtCreator.

For that reason I'm developing a plugin which allows adding a custom
IncrediBuild step. It exactly clones all settings from the corresponding
normal Qbs build step, prevents execution of the normal build step and
calls the external ibqbs.bat with the prepared argument list instead. This
already works pretty well, however I'm experiencing a synchronization
problem: The state of the internal buildgraph in QtCreator and the one of
the .bg file on disk (used by the external Qbs) differs. This is not
surprising at all, and I was aware of this problem ever since I started.
However I thought I could find (or add) some kind of synchronization points
to solve this problem. But apparently I can't get it working solid enough.

Ideally, what I need is something like this:
- Force storing the current state of the internal buildgraph to disk
- Possibly lock the internal buildgraph
... Now the external Qbs can do its job ...
- Re-read the buildgraph from the external .bg file
- Unlock the internal buildgraph, if it was locked before

So my question is: Is it be possible to it that way, or is my approach
completely wrong? Are there already some APIs that I could use (e.g. I
tried using updateTimestamps after the external build, which works well to
some extend)? Or do you have any suggestions for a possible patch?

Many thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20140722/da56d124/attachment.html>

More information about the Qbs mailing list