[QBS] Help on rule usage

olivier musse olivier.musse at sfr.fr
Thu Sep 3 17:00:25 CEST 2015


Hi,

I would like, in a rule of a product (application), apply some 
modification on the target files of another product (dynamic library) on 
which the application depends.
I tried using inputsFromDependencies as following but is does not works.

Product {
     type:['dynamicLibrary','mylib']
     name:'myLibrary'
}

Product {
     type:['application','myapp']

     Rule{
        inputs:['dynamicLibrary']
         inputsFromDependencies:['myLibrary']
         Artifact{
               filePath:input.filePath
               fileTags:"myapp"
         }
         prepare: .........
     }
}

What i'm doing wrong?

Many thanks in advance for any help.


Regards

Olivier




More information about the Qbs mailing list