[QBS] Generating rc file

olivier musse olivier.musse at sfr.fr
Fri May 16 15:29:54 CEST 2014

Hi Joerg,

Amazing, nice.... many thanks, it works perfectly and I think the module 
concept is what I need for many things I have to do.
Just one last question if I can : Does the folder hierarchy 
modules/generateRC/generateRC.qbs  can be change.
I have found 2 projects properties which are QbsSearchPath and 
moduleSearchPath but moduleSearchPath seems to have been removed and do 
not succeed to make QbsSearchPath works.
Today I use .pri files to do that and they are in this hierarchy (from 
main project folder)
How can I transpose with qbs  knowing that i can add subfolders if 
necessary but need to keep the IMPORT/Qi/tools folder



Le 16/05/2014 15:03, Joerg Bornemann a écrit :
> On 16-May-14 12:59, olivier musse wrote:
>> 2) What is the best solution (Module, Product...)  to put this
>> transformer and group in a separate file I can use from any project with
>> a simple Depends{ name : "generated.qbs"} call  or something equivalent.
>> I have tried using another product, but in this case the properties
>> (product.version) are not the one of the calling product and it is
>> impossible to automatically add the file to the calling product.
>> (Export{files:["generatedRC"}} does not work
> Sorry, I didn't see your 2nd question. :)
> Create a file modules/generateRC/generateRC.qbs in your project root 
> directory. Wrap your transformer with a Module item like this:
> Module {
>     Transformer {
>          // your code
>     }
> }
> Then you can use it in your products like this
> Product {
>     Depends { name: "generateRC" }
> }
> BR,
> Joerg

More information about the Qbs mailing list