Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Gagneraud
On Mon, 8 Jul 2019 at 22:09, Christian Kandeler wrote: > I would not bother with any of that. Just update the files. Any halfway > decent IDE will have a watch on the qbs files and re-resolve the project. I'm > not ruling out that manually manipulating the build graph (as we do for file >

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Kandeler
On Mon, 8 Jul 2019 22:13:48 +1200 Christian Gagneraud wrote: > On Mon, 8 Jul 2019 at 22:09, Christian Kandeler > wrote: > > I don't know what you mean by "simulating a full project reload". Lots of > > tst_api test cases do project reloads. > > I just meant a convenience function that would

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Gagneraud
On Mon, 8 Jul 2019 at 22:09, Christian Kandeler wrote: > I don't know what you mean by "simulating a full project reload". Lots of > tst_api test cases do project reloads. I just meant a convenience function that would handle: project = qbs::Project(); job.reset(nullptr);

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Kandeler
On Mon, 8 Jul 2019 21:22:13 +1200 Christian Gagneraud wrote: > On Mon, 8 Jul 2019 at 20:50, Christian Kandeler > wrote: > > > > On Mon, 8 Jul 2019 18:08:25 +1200 > > Christian Gagneraud wrote: > > > > > I'm back on https://codereview.qt-project.org/c/qbs/qbs/+/260217, i > > > decided that I

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Gagneraud
On Mon, 8 Jul 2019 at 20:50, Christian Kandeler wrote: > > On Mon, 8 Jul 2019 18:08:25 +1200 > Christian Gagneraud wrote: > > > I'm back on https://codereview.qt-project.org/c/qbs/qbs/+/260217, i > > decided that I should get that done and tested before I move on > > QtCreator integration. > >

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Kandeler
On Mon, 8 Jul 2019 18:08:25 +1200 Christian Gagneraud wrote: > I'm back on https://codereview.qt-project.org/c/qbs/qbs/+/260217, i > decided that I should get that done and tested before I move on > QtCreator integration. > Conceptually, it works, i added a test that check that a sub-project >

[Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Gagneraud
Hi there, I'm back on https://codereview.qt-project.org/c/qbs/qbs/+/260217, i decided that I should get that done and tested before I move on QtCreator integration. Conceptually, it works, i added a test that check that a sub-project is correctly inserted, but for now, i need to re-setup the top