-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
CuteHMI.qbs
66 lines (47 loc) · 1.37 KB
/
CuteHMI.qbs
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
62
63
64
65
66
import qbs
Project {
minimumQbsVersion: "1.19"
property bool buildExtensions: true
property bool buildTests: false
property bool buildTools: true
property bool staticExtensions: false
property bool buildApk: false
property bool buildBinaries: true
property bool windeployqt: false
property string extensionsSubdir: "extensions"
property string toolsSubdir: "tools"
qbsSearchPaths: ["qbs"]
references: [
toolsSubdir + "/tools.qbs",
extensionsSubdir + "/extensions.qbs"
]
AutotestRunner {
environment: {
var env = base;
env.push("QML2_IMPORT_PATH=" + cutehmi.dirs.installDir + "/" + cutehmi.dirs.extensionsInstallSubdir);
env.push("QBS_INSTALL_ROOT=" + qbs.installRoot);
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;
}
Depends { name: "Qt.core" }
Depends { name: "cutehmi.dirs" }
}
}