forked from qt-creator/qt-creator
For some unknown reason qdoc does not add the include paths for Qt modules, so we need to do that manually. Also, if we do that, we need to pass it the default include paths, so standard C++ headers are found. Qt includes and standard headers are found now, but Framework style includes on macOS still fail ("QtCore/QString"), which are used in Qt headers as well. Looks like the framework path that is passed with -F to qdoc is not passed on correctly. Task-number: QTCREATORBUG-22451 Change-Id: I04b2c75ecdeb1f0e70ba9adfea039f0ff16ec96b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
# Creates targets for building Qt Creator documentation
|
|
#
|
|
# Usage: Include qtcreator.pri and define DOC_FILES to point to a list of qdocconf files,
|
|
# then include this .pri file
|
|
|
|
isEmpty(VERSION): error("Include qtcreator.pri before including docs.pri!")
|
|
|
|
qtcname.name = IDE_DISPLAY_NAME
|
|
qtcname.value = "$$IDE_DISPLAY_NAME"
|
|
qtcid.name = IDE_ID
|
|
qtcid.value = $$IDE_ID
|
|
qtccasedid.name = IDE_CASED_ID
|
|
qtccasedid.value = $$IDE_CASED_ID
|
|
qtcver.name = QTC_VERSION
|
|
qtcver.value = $$QTCREATOR_DISPLAY_VERSION
|
|
qtcvertag.name = QTC_VERSION_TAG
|
|
qtcvertag.value = $$replace(VERSION, \.,)
|
|
qtdocs.name = QT_INSTALL_DOCS
|
|
qtdocs.value = $$[QT_INSTALL_DOCS/src]
|
|
qdocindex.name = QDOC_INDEX_DIR
|
|
qdocindex.value = $$[QT_INSTALL_DOCS]
|
|
qtcdocsdir.name = QTC_DOCS_DIR
|
|
qtcdocsdir.value = $$IDE_SOURCE_TREE/doc
|
|
qtccopyrightyear.name = QTCREATOR_COPYRIGHT_YEAR
|
|
qtccopyrightyear.value = $$QTCREATOR_COPYRIGHT_YEAR
|
|
qtcsourcedir.name = IDE_SOURCE_TREE
|
|
qtcsourcedir.value = $$IDE_SOURCE_TREE
|
|
QDOC_ENV += qtcname \
|
|
qtcid \
|
|
qtccasedid \
|
|
qtcver \
|
|
qtcvertag \
|
|
qtdocs \
|
|
qdocindex \
|
|
qtcdocsdir \
|
|
qtccopyrightyear \
|
|
qtcsourcedir
|
|
|
|
DOC_INDEX_PATHS += $$IDE_BUILD_TREE/doc
|
|
DOC_HTML_INSTALLDIR = $$INSTALL_DOC_PATH
|
|
DOC_QCH_OUTDIR = $$IDE_DOC_PATH
|
|
DOC_QCH_INSTALLDIR = $$INSTALL_DOC_PATH
|
|
|
|
minQtVersion(5, 11, 0) {
|
|
for (include_path, INCLUDEPATH): \
|
|
DOC_INCLUDES += -I $$shell_quote($$include_path)
|
|
for (module, QT) {
|
|
MOD_INCLUDES = $$eval(QT.$${module}.includes)
|
|
for (include_path, MOD_INCLUDES): \
|
|
DOC_INCLUDES += -I $$shell_quote($$include_path)
|
|
}
|
|
for (include_path, QMAKE_DEFAULT_INCDIRS): \
|
|
DOC_INCLUDES += -I $$shell_quote($$include_path)
|
|
macos: DOC_INCLUDES += -F $$shell_quote($$[QT_INSTALL_LIBS])
|
|
}
|
|
|
|
include(doc/doc_targets.pri)
|