[QBS] link options

Christian Kandeler christian.kandeler at digia.com
Wed Nov 27 12:22:28 CET 2013

On 11/27/2013 12:07 PM, Raphael Cotty wrote:
> I am using the Group item to exclude some files based on the architecture.
> How do I also exclude from the link the library that the excluded files
> uses?

You mean you want a conditional library dependency?

Product {
     // ...
     property bool useQt: false
     Depends {
         name: "Qt.core"
         condition: product.useQt
     Group {
         name: "Qt files"
         files: ["qtfile.h", "qtfile.cpp"]
         condition: product.useQt


More information about the Qbs mailing list