forked from qt-creator/qt-creator
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>
This commit is contained in:
11
docs.pri
11
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user