blob: 9aad3d032cc271573fc387680a1b5eed7e3b4b4b (
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
|
Project {
DynamicLibrary {
name: "the_lib"
Depends { name: "cpp" }
files: ["lib.cpp", "lib.h"]
Export {
Depends { name: "cpp" }
cpp.includePaths: path
}
Probe {
id: toolchainProbe
property stringList toolchain: qbs.toolchain
configure: {
if (toolchain.includes("msvc") && !toolchain.includes("clang-cl"))
console.info("compiler is MSVC")
else
console.info("compiler is not MSVC")
}
}
}
CppApplication {
name: "the_app"
property bool link
Depends { name: "the_lib"; cpp.link: product.link }
files: "main.cpp"
}
}
|