[QBS] link options

Raphael Cotty R.Cotty at cascade-technologies.com
Wed Nov 27 14:33:25 CET 2013

Yes, I mean a conditional library dependency.
How can I update cpp.dynamicLibraries according to the useQt property.
And also the cpp.defines

From: qbs-bounces+r.cotty=cascade-technologies.com at qt-project.org [qbs-bounces+r.cotty=cascade-technologies.com at qt-project.org] on behalf of Christian Kandeler [christian.kandeler at digia.com]
Sent: 27 November 2013 12:22
To: qbs at qt-project.org
Subject: Re: [QBS] link options

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


QBS mailing list
QBS at qt-project.org

More information about the Qbs mailing list