aboutsummaryrefslogtreecommitdiffstats
path: root/doc/doc.qbs
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-11-06 22:22:42 -0800
committerJake Petroules <jake.petroules@qt.io>2017-11-09 03:10:49 +0000
commit2530d46c5a8a9dfba6e02b48a376545cdaf7a361 (patch)
tree77a28150bb48119675311d07de46a5b5381f1b2d /doc/doc.qbs
parent842740d6ef482512df326e99c0d365b90ca503b0 (diff)
Allow disabling pieces of the Qbs project by category
This allows the "resources build" to not rely on a valid Qt profile. Task-number: QBS-1238 Change-Id: I1c743a95993099250da714c794b6e0ac16133609 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc/doc.qbs')
-rw-r--r--doc/doc.qbs92
1 files changed, 48 insertions, 44 deletions
diff --git a/doc/doc.qbs b/doc/doc.qbs
index 61e205f57..6d02d1cca 100644
--- a/doc/doc.qbs
+++ b/doc/doc.qbs
@@ -1,51 +1,55 @@
import qbs 1.0
-Product {
- name: "qbs documentation"
- builtByDefault: false
- type: "qch"
- Depends { name: "Qt.core" }
- Depends { name: "qbsbuildconfig" }
- Depends { name: "qbsversion" }
+Project {
+ references: ["man/man.qbs"]
- files: [
- "../README",
- "classic.css",
- "external-resources.qdoc",
- "fixnavi.pl",
- "howtos.qdoc",
- "qbs.qdoc",
- "qbs-online.qdocconf",
- "config/*.qdocconf",
- "config/style/qt5-sidebar.html",
- "reference/**/*",
- "templates/**/*",
- "images/**",
- "targets/**",
- ]
- Group {
- name: "main qdocconf file"
- files: "qbs.qdocconf"
- fileTags: "qdocconf-main"
- }
+ Product {
+ name: "qbs documentation"
+ builtByDefault: false
+ type: "qch"
+ Depends { name: "Qt.core" }
+ Depends { name: "qbsbuildconfig" }
+ Depends { name: "qbsversion" }
- property string versionTag: qbsversion.version.replace(/\.|-/g, "")
- Qt.core.qdocEnvironment: [
- "QBS_VERSION=" + qbsversion.version,
- "SRCDIR=" + path,
- "QT_INSTALL_DOCS=" + Qt.core.docPath,
- "QBS_VERSION_TAG=" + versionTag
- ]
+ files: [
+ "../README",
+ "classic.css",
+ "external-resources.qdoc",
+ "fixnavi.pl",
+ "howtos.qdoc",
+ "qbs.qdoc",
+ "qbs-online.qdocconf",
+ "config/*.qdocconf",
+ "config/style/qt5-sidebar.html",
+ "reference/**/*",
+ "templates/**/*",
+ "images/**",
+ "targets/**",
+ ]
+ Group {
+ name: "main qdocconf file"
+ files: "qbs.qdocconf"
+ fileTags: "qdocconf-main"
+ }
- 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
+ property string versionTag: qbsversion.version.replace(/\.|-/g, "")
+ Qt.core.qdocEnvironment: [
+ "QBS_VERSION=" + qbsversion.version,
+ "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
+ }
}
}