summaryrefslogtreecommitdiff
path: root/doc/doc_shared.pri
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-03-10 14:46:22 +0100
committerEike Ziller <eike.ziller@qt.io>2017-03-13 10:11:05 +0000
commitae1d99eafb2268eb44eb2d74d7098bf88159b8c9 (patch)
treea152072e0ad36e907a627dbd4106fee59148977b /doc/doc_shared.pri
parent0d2860d1ec6d62a7fc42dbbabd87c1116c252145 (diff)
downloadqbs-ae1d99eafb2268eb44eb2d74d7098bf88159b8c9.tar.gz
Refactor documentation generation
Update doc_targets.pri to changes made in Qt Creator and create a pri file for Qbs documentation for inclusion in Qt Creator. Change-Id: I8c3258c193d3e526e6a345c0efee18dcdd11cfc8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'doc/doc_shared.pri')
-rw-r--r--doc/doc_shared.pri14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/doc_shared.pri b/doc/doc_shared.pri
new file mode 100644
index 000000000..3e4eccf48
--- /dev/null
+++ b/doc/doc_shared.pri
@@ -0,0 +1,14 @@
+include(../qbs_version.pri)
+
+qbsdoc_version.name = QBS_VERSION
+qbsdoc_version.value = $$QBS_VERSION
+qbsdoc_versiontag.name = QBS_VERSION_TAG
+qbsdoc_versiontag.value = $$replace(QBS_VERSION, "[-.]", )
+qbsdoc_qtdocs.name = QT_INSTALL_DOCS
+qbsdoc_qtdocs.value = $$[QT_INSTALL_DOCS/src]
+QDOC_ENV += qbsdoc_version qbsdoc_versiontag qbsdoc_qtdocs
+
+build_online_docs: \
+ DOC_FILES += $$PWD/qbs-online.qdocconf
+else: \
+ DOC_FILES += $$PWD/qbs.qdocconf