blob: a5705a865358331489311299a3531464f62cfcf0 (
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
|
import qbs.Host
Project {
LoadableModule {
Depends { name: "cpp" }
Properties {
condition: qbs.targetOS.contains("darwin")
bundle.isBundle: false
}
name: "CoolPlugIn"
files: ["exported.cpp", "exported.h"]
Group {
fileTagsFilter: product.type
qbs.install: true
}
}
CppApplication {
condition: {
var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result;
}
Depends { name: "cpp" }
Depends { name: "CoolPlugIn"; cpp.link: false }
consoleApplication: true
name: "CoolApp"
files: ["main.cpp"]
cpp.cxxLanguageVersion: "c++11"
cpp.dynamicLibraries: [qbs.targetOS.contains("windows") ? "kernel32" : "dl"]
Properties {
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("darwin")
cpp.rpaths: [cpp.rpathOrigin]
}
Group {
fileTagsFilter: product.type
qbs.install: true
}
}
}
|