blob: 4015817cae43ebcd7ef087b5c5f1d8d47c051bfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
CppApplication {
property bool validate: {
var valid = true;
if (qbs.buildVariant === "release") {
valid = !qbs.enableDebugCode && !qbs.debugInformation && qbs.optimization === "fast";
} else if (qbs.buildVariant === "debug") {
valid = qbs.enableDebugCode && qbs.debugInformation && qbs.optimization === "none";
} else if (qbs.buildVariant === "profiling") {
valid = !qbs.enableDebugCode && qbs.debugInformation && qbs.optimization === "fast";
}
if (!valid)
throw "Invalid defaults";
return valid;
}
}
|