blob: 44d0b751dc53ba496bd14a603b7727827ee7bc4a (
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
53
54
55
56
57
58
59
60
61
|
import qbs 1.0
Project {
minimumQbsVersion: "1.6"
qbsSearchPaths: ["qbs-resources"]
property bool withExamples: false
property stringList autotestArguments: []
references: [
"dist/dist.qbs",
"doc/doc.qbs",
"share/share.qbs",
"src/src.qbs",
"tests/auto/auto.qbs",
"tests/fuzzy-test/fuzzy-test.qbs",
"tests/benchmarker/benchmarker.qbs",
]
SubProject {
filePath: "examples/examples.qbs"
Properties {
condition: parent.withExamples
}
}
Product {
name: "qmake project files for qbs"
files: ["**/*.pr[io]"]
}
AutotestRunner {
Depends { name: "Qt.core" }
Depends { name: "qbs resources" }
Depends { name: "qbs_cpp_scanner" }
Depends { name: "qbs_qt_scanner" }
arguments: project.autotestArguments
environment: {
var env = base;
if (qbs.hostOS.contains("windows") && qbs.targetOS.contains("windows")) {
var path = "";
for (var i = 0; i < env.length; ++i) {
if (env[i].startsWith("PATH=")) {
path = env[i].substring(5);
break;
}
}
path = Qt.core.binPath + ";" + path;
var arrayElem = "PATH=" + path;
if (i < env.length)
env[i] = arrayElem;
else
env.push(arrayElem);
}
if (qbs.hostOS.contains("darwin") && qbs.targetOS.contains("darwin")) {
env.push("DYLD_FRAMEWORK_PATH=" + Qt.core.libPath);
env.push("DYLD_LIBRARY_PATH=" + Qt.core.libPath);
}
return env;
}
}
}
|