diff options
author | Martin Smith <martin.smith@qt.io> | 2018-09-20 13:42:57 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2018-10-05 05:15:06 +0000 |
commit | 4bdd8d4ecac42be9e93faa7a2b9ae3448c4f989e (patch) | |
tree | cc1d4db3212171b2029ab9f437f27a80c02a9d77 /mkspecs | |
parent | 559c94ea4326f47c6416fec9840732a219835ca6 (diff) |
qdoc: Add default include dirs to qdoc command line
This change applies to darwin. It adds each include path in the
QMAKE_DEFAULT_INCDIRS variable to the qdoc command line with the -I
flag for both the prepare and the generate phase. These include paths
provide access to the standard c++ and c headers, which clang needs
to see. This change should work on all platforms, but it increased
the qdoc warning count on the linuxsystem where it was tested, so
now it only applies to darwin.
Change-Id: I16e2e0d744e2cf68743dc12d39155dda2ece1536
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/qt_docs.prf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/qt_docs.prf b/mkspecs/features/qt_docs.prf index 3139c443c6..e4df3c0b48 100644 --- a/mkspecs/features/qt_docs.prf +++ b/mkspecs/features/qt_docs.prf @@ -78,6 +78,12 @@ doc_command = $$QDOC $$QMAKE_DOCS prepare_docs { prepare_docs.commands += $$doc_command -prepare $$PREP_DOC_INDEXES -no-link-errors $(INCPATH) generate_docs.commands += $$doc_command -generate $$DOC_INDEXES $(INCPATH) + darwin { + for (incdir, $$QMAKE_DEFAULT_INCDIRS) { + prepare_docs.commands += -I$$shell_quote($$incdir) + generate_docs.commands += -I$$shell_quote($$incdir) + } + } prepare_docs.depends += qtattributionsscanner } else { html_docs.commands += $$doc_command $$DOC_INDEXES $(INCPATH) |