blob: 397c2a691f4d941cee606a11d700a0a3d5278bcc (
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
|
import qbs
import qbs.Utilities
CppApplication {
name: "app"
consoleApplication: true
Depends { name: "Qt.core" }
Depends { name: "Qt.quick" }
Depends { name: "Qt.qml" }
install: true
installDir: ""
qbs.installPrefix: ""
Qt.qml.generateCacheFiles: true
Qt.qml.cacheFilesInstallDir: "data"
files: [
"main.cpp",
"MainForm.ui.qml",
"main.qml",
"stuff.js"
]
// Install the C++ sources to tell the blackbox test that Qt.qmlcache is not available.
Group {
condition: !Qt.qml.cachingEnabled
fileTagsFilter: ["cpp"]
qbs.install: true
qbs.installDir: "data"
}
Probe {
id: qtVersionProbe
property string qtVersion: Qt.core.version
configure: {
console.info("qmlcachegen must work: "
+ (Utilities.versionCompare(qtVersion, "5.11") >= 0))
}
}
}
|