summaryrefslogtreecommitdiff
path: root/doc/doc.qbs
blob: 6e5ca72d1acd6920a056f20778ff096070d88ff5 (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
import qbs 1.0

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

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

    property string versionTag: "030" // TODO: Derive from project.version
    qt.core.qdocQhpFileName: "qbs.qhp"
    qt.core.qdocEnvironment: [
        "QBS_VERSION=" + project.version,
        "SRCDIR=.",
        "QBS_VERSION_TAG=" + versionTag
    ]

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