<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi everyone,<br><br></div>I want to create a solution for Qbs builds using the "IncrediBuild" build accelerator from within QtCreator.<br><br>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.<br>
<br></div>Ideally, what I need is something like this:<br></div>- Force storing the current state of the internal buildgraph to disk<br></div>- Possibly lock the internal buildgraph<br></div>... Now the external Qbs can do its job ...<br>
</div>- Re-read the buildgraph from the external .bg file<br></div>- Unlock the internal buildgraph, if it was locked before<br><br></div>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?<br>
<br></div>Many thanks,<br>Thomas<br><br></div>