[QBS] Changing cpp.warningLevel property globally

Christian Kandeler christian.kandeler at digia.com
Fri Sep 13 14:55:58 CEST 2013


On 09/13/2013 12:43 PM, Raphael Cotty wrote:
> Is there a way to store the global options for a project in a file?

No, but if all (or most) of your products should get a certain property, 
you could derive them from a custom product item that has it:

----- genericproduct.qbs -----
import qbs

Product {
     Depends { name: "cpp" }
     cpp.warningLevel: "none"
     // ...
}


----- specificproduct.qbs -----
import qbs
import "genericproduct.qbs" as GenericProduct

GenericProduct {
     type: "application"
     // ...
}


Christian

> Or defining a profile for a project.
> This file can then be saved in source repository.
>
> Raphael Cotty
> ________________________________________
> 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: 13 September 2013 12:26
> To: qbs at qt-project.org
> Subject: Re: [QBS] Changing cpp.warningLevel property globally
>
> On 09/13/2013 11:58 AM, Raphael Cotty wrote:
>> Is there a way to set cpp.warningLevel to none for all the different
>> projects?
>
> Sounds like you want to set that in in a profile:
>       qbs config <profile>.cpp.warningLevel none
> (Or use config-ui.)
>
>
> Christian
>
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>




More information about the Qbs mailing list