diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-03-10 11:54:41 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-03-10 14:34:50 +0000 |
commit | ef470a1d10c619f28614140d71e694253e8e6b47 (patch) | |
tree | d1beb9f124247eadfdfa1b5793f03d1ee7f579b6 /docs.pri | |
parent | 330f63a8dbfd99f8b72b58c349c8112bfc2021e5 (diff) |
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>
Diffstat (limited to 'docs.pri')
-rw-r--r-- | docs.pri | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 } |