aboutsummaryrefslogtreecommitdiffstats
path: root/doc/doc_shared.pri
diff options
context:
space:
mode:
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