blob: b409c7cc6f0242d151dae332d7faf2aa2b6be2e9 (
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
|
import qbs 1.0
import qbs.Probes
CppApplication {
Probe {
id: probe1
property string someString
configure: {
someString = "one";
found = true;
}
}
Probe {
id: probe2
configure: {
found = false;
}
}
name: "MyApp"
type: {
if (!probe1.found)
throw "probe1 not found";
if (probe2.found)
throw "probe2 unexpectedly found";
if (probe1.someString !== "one")
throw "probe1.someString expected to be \"one\"."
return "application"
}
files: ["main.cpp"]
}
|