[QBS] link options

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


Just found the new Property item.
Looks like it's exactly what I need.
________________________________________
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 Raphael Cotty
Sent: 27 November 2013 14:33
To: Christian Kandeler; qbs at qt-project.org
Subject: Re: [QBS] link options

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

Thanks
________________________________________
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
     }
}


Christian


_______________________________________________
QBS mailing list
QBS at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs
_______________________________________________
QBS mailing list
QBS at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs



More information about the Qbs mailing list