blob: 4dca16df0f537c72c371f66aba4f7912f3e51862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import qbs.Utilities
// a specific version of the operating systems is specified
// when the application is run its output should confirm
// that the given values took effect
import qbs.Host
CppApplication {
condition: {
var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result && qbs.targetOS.contains("windows") || qbs.targetOS.contains("macos");
}
files: [qbs.targetOS.contains("darwin") ? "main.mm" : "main.cpp"]
consoleApplication: true
Properties {
condition: qbs.targetOS.contains("windows")
cpp.minimumWindowsVersion: "6.0"
cpp.defines: [
"QBS_WINVER=0x600",
"TOOLCHAIN_INSTALL_PATH=" + Utilities.cStringQuote(cpp.toolchainInstallPath)
]
}
Properties {
condition: qbs.targetOS.contains("macos")
cpp.frameworks: "Foundation"
cpp.minimumMacosVersion: "10.7"
}
}
|