aboutsummaryrefslogtreecommitdiffstats
path: root/doc/doc.qbs
blob: c282897015bf415779ca0295d10ee7188e9544ec (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
import qbs 1.0
import "../version.js" as Version

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

    files: [
        "qbs.qdoc",
        "config/*.qdocconf",
        "reference/**/*",
    ]
    Group {
        name: "main qdocconf file"
        files: Qt.core.versionMajor >= 5 ? "qbs.qdocconf" : "qbs-qt4.qdocconf"
        fileTags: "qdocconf-main"
    }

    property string versionTag: Version.qbsVersion().replace(/\.|-/g, "")
    Qt.core.qdocQhpFileName: "qbs.qhp"
    Qt.core.qdocEnvironment: [
        "QBS_VERSION=" + Version.qbsVersion(),
        "SRCDIR=" + path,
        "QT_INSTALL_DOCS=" + Qt.core.docPath,
        "QBS_VERSION_TAG=" + versionTag
    ]

    Group {
        fileTagsFilter: "qdoc-html"
        qbs.install: true
        qbs.installDir: "share/doc/qbs"
    }
}