[Qbs] Concatenating include paths with Qbs

Timur Kristóf timur.kristof at gmail.com
Wed May 24 10:27:20 CEST 2017


Hi Christian,

Thanks for your answer!

> A product's properties are "private" in that they are not accessible
> from other products. You add module properties such as
> cpp.includePaths to depending products using an Export item:
> 
> Product {
>     name: "ex"
>     // ...
>     Export {
>         Depends { name: "cpp" }
>         cpp.includePaths: product.myIncludes // "product" refers to
> the exporting product
>     }
> }
> 
> Note that you don't have to do anything in the other product except
> adding the dependency to "ex".


This still doesn't work for me:
https://pastebin.com/v0hg9Mhr
The includes from the library don't get added to the application.
Am I doing it wrong?

It works if I do it like this, but this would lead to code duplication:
https://pastebin.com/b60GZBum


Cheers,
Timur



More information about the Qbs mailing list