Commit 4d5a8368 authored by Christian Kandeler's avatar Christian Kandeler

Build documentation also when using qbs.

Change-Id: I17330fa27effc633a06bc8f0a5864e771b831476
Reviewed-by: Jake Petroules's avatarJake Petroules <jake.petroules@qt.io>
parent bc4a24db
import qbs
Project {
name: "documentation"
QtcDocumentation {
name: "user doc online"
isOnlineDoc: true
mainDocConfFile: "qtcreator-online.qdocconf"
files: [
"src/**/*",
]
}
QtcDocumentation {
name: "user doc offline"
isOnlineDoc: false
mainDocConfFile: "qtcreator.qdocconf"
files: [
"src/**/*",
]
}
QtcDocumentation {
name: "API doc online"
isOnlineDoc: true
mainDocConfFile: "api/qtcreator-dev-online.qdocconf"
Group {
name: "sources"
files: [
"api/*.qdoc",
"api/**/*",
]
excludeFiles: [mainDocConfFile]
}
}
QtcDocumentation {
name: "API doc offline"
isOnlineDoc: false
mainDocConfFile: "api/qtcreator-dev.qdocconf"
Group {
name: "sources"
files: [
"api/*.qdoc",
"api/**/*",
]
excludeFiles: [mainDocConfFile]
}
}
}
import qbs
Product {
builtByDefault: false
type: [isOnlineDoc ? "qdoc-output" : "qch"]
Depends { name: "Qt.core" }
property path mainDocConfFile
property bool isOnlineDoc
Group {
name: "main qdocconf file"
files: [mainDocConfFile]
fileTags: ["qdocconf-main"]
}
property string versionTag: project.qtcreator_version.replace(/\.|-/g, "")
Qt.core.qdocEnvironment: [
"QTC_LICENSE_TYPE=" + project.licenseType,
"QTC_VERSION=" + project.qtcreator_version,
"QTC_VERSION_TAG=" + project.qtcreator_version,
"SRCDIR=" + sourceDirectory,
"QT_INSTALL_DOCS=" + Qt.core.docPath,
"QDOC_INDEX_DIR=" + Qt.core.docPath,
"VERSION_TAG=" + versionTag
]
Group {
fileTagsFilter: ["qch"]
qbs.install: !qbs.targetOS.contains("osx")
qbs.installDir: project.ide_doc_path
}
}
......@@ -6,6 +6,7 @@ Project {
name: "Qt Creator"
minimumQbsVersion: "1.5.0"
property bool withAutotests: qbs.buildVariant === "debug"
property string licenseType: "opensource"
property string ide_version_major: '4'
property string ide_version_minor: '0'
property string ide_version_release: '82'
......@@ -62,6 +63,7 @@ Project {
qbsSearchPaths: "qbs"
references: [
"doc/doc.qbs",
"src/src.qbs",
"share/share.qbs",
"share/qtcreator/translations/translations.qbs",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment