blob: 326bf5dae5007d471eeb251281b83bcd8602d284 (
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
|
import qbs.TextFile
Project {
property string libDir: buildDirectory + "/libs"
StaticLibrary {
name: "lib1"
destinationDirectory: project.libDir
Depends { name: "cpp" }
Properties {
condition: qbs.targetOS.includes("darwin")
bundle.isBundle: false
}
files: ["lib1.cpp"]
}
StaticLibrary {
name: "lib2"
destinationDirectory: project.libDir
Depends { name: "cpp" }
Depends { name: "lib1" }
Properties {
condition: qbs.targetOS.includes("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"]
}
}
|