blob: 44d8013b951dd2e0ce8b4fe10faa2087c428cc03 (
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
33
34
35
36
37
38
|
import qbs
Project {
minimumQbsVersion: "1.6"
Probe {
id: tcProbe
property stringList toolchain: qbs.toolchain
property stringList targetOS: qbs.targetOS
configure: {
found = toolchain.contains("gcc") && targetOS.contains("unix");
if (!found)
console.info("project disabled");
}
}
DynamicLibrary {
condition: tcProbe.found
name: "lib"
property stringList defines: []
cpp.defines: defines
Depends { name: "cpp" }
files: ["lib.cpp"]
}
CppApplication {
condition: tcProbe.found
name:"app"
Depends { name: "lib" }
Depends { name: "staticlib" }
files: ["main.cpp"]
}
StaticLibrary {
condition: tcProbe.found
name: "staticlib"
Depends { name: "lib" }
Depends { name: "cpp" }
files: "staticlib.cpp"
}
}
|