[QBS] Global and local properties in projects and products
Joerg Bornemann
joerg.bornemann at digia.com
Mon Jul 28 12:16:44 CEST 2014
On 25-Jul-14 15:12, Richard Weickelt wrote:
> When building "myApplication", different configuration options come to my mind:
> 1. Global properties with influence to every product inside "framework"
> and "app"
Project {
...
property string somethingGlobal: "global"
SubProject {
filePath: "framework.qbs"
inheritProperties: true // this is the default
}
}
> 2. Local properties, only valid for "lib1" or "lib2"
Project {
...
SubProject {
filePath: "framework.qbs"
Properties {
somethingLocal: "changed from outside"
}
}
}
---framework.qbs---
Project {
property string somethingLocal: "local"
}
See also http://qt-project.org/doc/qbs-1.2/subproject-item.html
BR,
Joerg
More information about the Qbs
mailing list