[Qbs] Running a helper application right after it is build

Christian Kandeler christian.kandeler at qt.io
Mon Aug 13 10:31:06 CEST 2018


On Sun, 12 Aug 2018 22:56:31 +0300
Карелин Павел <hkarel at yandex.ru> wrote:

> I have a project in which, in addition to the main application, 
> auxiliary utilities are builded. In this regard, I have two questions:
> 
> 1) How do I run an auxiliary utility right after his built, so that it 
> could generate necessary data?

It works the same way as always: You trigger creation of the data by giving it some tag, and the tool's tag appears as some sort of input in the respective rule (which has the data as outputs).

> 2) How to pass parameters to the auxiliary utility? The matter is that 
> the utility has one parameter - a directory name. It directory contains 
> text files without expansion, the utility has to process these files. 
> The output should be one file with the extension 'map'

You rule has to take care of that when creating the Command.


Christian



More information about the Qbs mailing list