aboutsummaryrefslogtreecommitdiffstats
path: root/doc/doc.qbs
blob: f7efdd239e2c0700f02e587c47045a035426eda6 (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
import qbs 1.0
import QbsFunctions

Product {
    name: "documentation"
    builtByDefault: false
    type: "qch"
    Depends { name: "Qt.core" }

    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: true
        qbs.installDir: "share/doc/qbs/html"
        qbs.installSourceBase: Qt.core.qdocOutputDir
    }
}