blob: 244c80c2c9c54a6cd5abc6e0c10eb33ace2492ae (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
import qbs 1.0
Project {
property bool someTrueProperty: true
Product {
name: "no_condition_no_group"
files: ["main.cpp"]
}
Product {
name: "no_condition"
Group {
files: ["main.cpp"]
}
}
Product {
name: "true_condition"
Group {
condition: true
files: ["main.cpp"]
}
}
Product {
name: "false_condition"
Group {
condition: false
files: ["main.cpp"]
}
}
Product {
name: "true_condition_from_product"
property bool anotherTrueProperty: true
Group {
condition: anotherTrueProperty
files: ["main.cpp"]
}
}
Product {
name: "true_condition_from_project"
Group {
condition: project.someTrueProperty
files: ["main.cpp"]
}
}
Product {
name: "condition_accessing_module_property"
Group {
condition: qbs.targetOS.contains("narf")
files: ["main.cpp"]
qbs.install: false
}
}
}
|