blob: c83259c424e9ca0839f884545e6742ca46725dbe (
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
|
import qbs 1.0
import QbsFunctions
Product {
name: "documentation"
builtByDefault: false
type: "qch"
Depends { name: "Qt.core" }
Depends { name: "qbsbuildconfig" }
files: [
"qbs.qdoc",
"config/*.qdocconf",
"reference/**/*",
]
Group {
name: "main qdocconf file"
files: "qbs.qdocconf"
fileTags: "qdocconf-main"
}
property string versionTag: QbsFunctions.qbsVersion().replace(/\.|-/g, "")
Qt.core.qdocEnvironment: [
"QBS_VERSION=" + QbsFunctions.qbsVersion(),
"SRCDIR=" + path,
"QT_INSTALL_DOCS=" + Qt.core.docPath,
"QBS_VERSION_TAG=" + versionTag
]
Group {
fileTagsFilter: ["qdoc-output"]
qbs.install: qbsbuildconfig.installHtml
qbs.installDir: qbsbuildconfig.docInstallDir
qbs.installSourceBase: Qt.core.qdocOutputDir
}
Group {
fileTagsFilter: ["qch"]
qbs.install: qbsbuildconfig.installQch
qbs.installDir: qbsbuildconfig.docInstallDir
}
}
|