[Qbs] Writing a custom script by QBS

Christian Kandeler christian.kandeler at qt.io
Fri Oct 20 10:07:42 CEST 2017


On Fri, 20 Oct 2017 16:01:30 +0800
Ben Lau <xbenlau at gmail.com> wrote:

> What if it change the condition. Let's it just starts a web server for
> providing mock data to test network service?
> 
> For example, just run `http-server $SRCDIR/mockdata`? (Assume the data is
> hard coded in a few set of json files)

I'm not sure I get what you are saying, but if you mean that your rule should have no inputs (which is questionable in your example, since it should depend on the json files), then just set the rule's "requiresInputs" property to true.


Christian



More information about the Qbs mailing list