don't pass -indexdir during prepare_docs phase
the forward-referenced directories don't exist yet, so we get pointless warnings. in fact, this is why we do a multi-pass build in the first place, and consequently using indexes during the first pass is illogical. Task-number: QTBUG-32152 Change-Id: I66bf6b43238827e87cb8bf6932d581b808c1032d Reviewed-by: Martin Smith <martin.smith@digia.com>bb10
parent
6d5ab1d305
commit
23e8fa55b4
|
|
@ -19,11 +19,12 @@ isEmpty(QMAKE_DOCS_TARGETDIR): QMAKE_DOCS_TARGETDIR = $$QMAKE_DOCS_TARGET
|
|||
QMAKE_DOCS_OUTPUTDIR = $$QMAKE_DOCS_BASE_OUTDIR/$$QMAKE_DOCS_TARGETDIR
|
||||
|
||||
qtPrepareTool(QDOC, qdoc)
|
||||
for(qmod, QMAKEMODULES): \
|
||||
QDOC += -indexdir $$section(qmod, /, 0, -3)/doc
|
||||
QDOC += -outputdir $$QMAKE_DOCS_OUTPUTDIR
|
||||
!build_online_docs: \
|
||||
QDOC += -installdir $$[QT_INSTALL_DOCS]
|
||||
DOC_INDEXES =
|
||||
for(qmod, QMAKEMODULES): \
|
||||
DOC_INDEXES += -indexdir $$section(qmod, /, 0, -3)/doc
|
||||
qtver.name = QT_VERSION
|
||||
qtver.value = $$VERSION
|
||||
isEmpty(qtver.value): qtver.value = $$MODULE_VERSION
|
||||
|
|
@ -38,9 +39,9 @@ qtAddToolEnv(QDOC, qtver qtmver qtvertag qtdocs)
|
|||
doc_command = $$QDOC $$QMAKE_DOCS
|
||||
prepare_docs {
|
||||
prepare_docs.commands += $$doc_command -prepare -no-link-errors
|
||||
generate_docs.commands += $$doc_command -generate
|
||||
generate_docs.commands += $$doc_command -generate $$DOC_INDEXES
|
||||
} else {
|
||||
html_docs.commands += $$doc_command
|
||||
html_docs.commands += $$doc_command $$DOC_INDEXES
|
||||
}
|
||||
|
||||
!build_online_docs {
|
||||
|
|
|
|||
Loading…
Reference in New Issue