blob: 393179a5ee3b56b5125f56373d508a4e6df090be (
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
|
import qbs 1.0
Project {
property bool hasSpecialFeature: true
Application {
name: 'HelloWorld-Complex'
Depends { name: 'cpp' }
cpp.defines: ['SOMETHING']
files: [
"src/foo.h",
"src/foo.cpp"
]
Group {
condition: project.hasSpecialFeature
prefix: "src/"
files: ["specialfeature.cpp", "specialfeature.h"]
}
Group {
cpp.defines: {
var defines = outer.concat([
'HAVE_MAIN_CPP',
cpp.debugInformation ? '_DEBUG' : '_RELEASE'
]);
if (project.hasSpecialFeature)
defines.push("HAS_SPECIAL_FEATURE");
return defines;
}
prefix: "src/"
files: [
'main.cpp'
]
}
}
}
|