blob: d2e983c3eeb02074f39abb3413fc0970a1f52217 (
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
|
import qbs
import qbs.TextFile
Project {
property string libDir: sourceDirectory + "/libs"
StaticLibrary {
name: "lib1"
destinationDirectory: project.libDir
Depends { name: "cpp" }
Properties {
condition: qbs.targetOS.contains("darwin")
bundle.isBundle: false
}
files: ["lib1.cpp"]
}
StaticLibrary {
name: "lib2"
destinationDirectory: project.libDir
Depends { name: "cpp" }
Depends { name: "lib1" }
Properties {
condition: qbs.targetOS.contains("darwin")
bundle.isBundle: false
}
files: ["lib2.cpp"]
}
CppApplication {
Depends { name: "lib1"; cpp.link: false }
Depends { name: "lib2"; cpp.link: false }
files: ["main.cpp"]
cpp.libraryPaths: [project.libDir]
cpp.staticLibraries: ["lib1", "lib2", "lib1"]
}
}
|