[QBS] Help on rule usage
Christian Kandeler
christian.kandeler at theqtcompany.com
Thu Sep 3 17:14:39 CEST 2015
On 09/03/2015 05:00 PM, olivier musse wrote:
> 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.
Note that "does not work" is the least helpful description possible.
> Product {
> type:['dynamicLibrary','mylib']
I assume you really have an artifact with the tag "mylib"?
> name:'myLibrary'
> }
>
> Product {
> type:['application','myapp']
>
> Rule{
> inputs:['dynamicLibrary']
> inputsFromDependencies:['myLibrary']
This is the name of your library, not a file tag.
Also, I don't see a dependency on the library anywhere.
> Artifact{
> filePath:input.filePath
> fileTags:"myapp"
> }
> prepare: .........
> }
> }
Christian
More information about the Qbs
mailing list