blob: d29e7e6198e02dc5c78bb3a0e82fd24fb8d8c178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Product {
Depends { name: "cpp" }
condition: {
if (qbs.toolchainType === "keil"
|| qbs.toolchainType === "iar"
|| qbs.toolchainType === "sdcc"
|| qbs.toolchainType === "cosmic") {
var hasNoPlatform = (qbs.targetPlatform === "none");
var hasNoOS = (qbs.targetOS.length === 1 && qbs.targetOS[0] === "none");
console.info("has no platform: " + hasNoPlatform);
console.info("has no os: " + hasNoOS);
} else {
console.info("unsupported toolset: %%"
+ qbs.toolchainType + "%%, %%" + qbs.architecture + "%%");
return false;
}
return true;
}
}
|