blob: d7ed6c862e6b9c51de5c043407b3833d253261b4 (
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
|
Project {
Application {
name : "HelloWorld"
files : [ "main.cpp" ]
Depends { name: "cpp" }
Depends { name: "static1" }
}
StaticLibrary {
name: "static1"
files: [ "static1.cpp" ]
Depends { name: "cpp" }
Depends { name: "dynamic1" }
Probe {
id: osCheck
property bool isNormalUnix: qbs.targetOS.contains("unix")
&& !qbs.targetOS.contains("darwin")
configure: { console.info("is normal unix: " + (isNormalUnix ? "yes" : "no")); }
}
}
DynamicLibrary {
name : "dynamic1"
files : [ "dynamic1.cpp" ]
Depends { name: "cpp" }
Depends { name: "static2" }
Properties {
condition: qbs.targetOS.contains("darwin")
bundle.isBundle: false
}
}
StaticLibrary {
name: "static2"
files: [ "static2.cpp", "static2.h" ]
Depends { name: "cpp" }
Depends { name: "dynamic2" }
}
DynamicLibrary {
name: "dynamic2"
files: [ "dynamic2.cpp" ]
Depends { name: "cpp" }
cpp.visibility: 'hidden'
Properties {
condition: qbs.targetOS.contains("darwin")
bundle.isBundle: false
}
}
}
|