summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-03-10 11:54:41 +0100
committerEike Ziller <eike.ziller@qt.io>2017-03-10 14:34:50 +0000
commitef470a1d10c619f28614140d71e694253e8e6b47 (patch)
treed1beb9f124247eadfdfa1b5793f03d1ee7f579b6
parent330f63a8dbfd99f8b72b58c349c8112bfc2021e5 (diff)
downloadqt-creator-ef470a1d10c619f28614140d71e694253e8e6b47.tar.gz
Add documentation sub-targets
To make it possible to build individual documentation sets with targets html_docs_<name> and qch_docs_<name>. Keep using the && chained commands for the (html|qch)_docs targets though, because we had issues with parallel documentation creation before. Change-Id: I80556bfaddb79aec3da3e09e4d4843b5d33be451 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r--docs.pri11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs.pri b/docs.pri
index 68c6d41450..4c125724a3 100644
--- a/docs.pri
+++ b/docs.pri
@@ -28,12 +28,19 @@ for (qtc_doc, QTC_DOCS) {
QTC_DOCS_TARGETDIR = $$QTC_DOCS_TARGET
QTC_DOCS_OUTPUTDIR = $$QTC_DOCS_BASE_OUTDIR/$$QTC_DOCS_TARGETDIR
+ html_docs_$${QTC_DOCS_TARGET}.commands = $$QDOC -outputdir $$shell_quote($$QTC_DOCS_OUTPUTDIR) $$qtc_doc $$DOC_INDEXES
+ QMAKE_EXTRA_TARGETS += html_docs_$${QTC_DOCS_TARGET}
+
!isEmpty(html_docs.commands): html_docs.commands += &&
- html_docs.commands += $$QDOC -outputdir $$shell_quote($$QTC_DOCS_OUTPUTDIR) $$qtc_doc $$DOC_INDEXES
+ html_docs.commands += $$eval(html_docs_$${QTC_DOCS_TARGET}.commands)
!build_online_docs {
+ qch_docs_$${QTC_DOCS_TARGET}.commands = $$QHELPGENERATOR $$shell_quote($$QTC_DOCS_OUTPUTDIR/$${QTC_DOCS_TARGET}.qhp) -o $$shell_quote($$IDE_DOC_PATH/$${QTC_DOCS_TARGET}.qch)
+ qch_docs_$${QTC_DOCS_TARGET}.depends = html_docs_$${QTC_DOCS_TARGET}
+ QMAKE_EXTRA_TARGETS += qch_docs_$${QTC_DOCS_TARGET}
+
!isEmpty(qch_docs.commands): qch_docs.commands += &&
- qch_docs.commands += $$QHELPGENERATOR $$shell_quote($$QTC_DOCS_OUTPUTDIR/$${QTC_DOCS_TARGET}.qhp) -o $$shell_quote($$IDE_DOC_PATH/$${QTC_DOCS_TARGET}.qch)
+ qch_docs.commands += $$eval(qch_docs_$${QTC_DOCS_TARGET}.commands)
inst_qch_docs.files += $$IDE_DOC_PATH/$${QTC_DOCS_TARGET}.qch
}