qtbase-opensource-src/debian/patches/qdoc_default_incdirs.diff

27 lines
1.0 KiB
Diff
Raw Normal View History

From: Martin Smith <martin.smith@qt.io>
Date: Fri, 5 May 2023 07:44:33 +0000
Subject: pass default include directories to qdoc
Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28
---
mkspecs/features/qt_docs.prf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mkspecs/features/qt_docs.prf b/mkspecs/features/qt_docs.prf
index e19d06f..05cdb11 100644
--- a/mkspecs/features/qt_docs.prf
+++ b/mkspecs/features/qt_docs.prf
@@ -98,6 +98,10 @@ doc_command = $$QDOC $$QMAKE_DOCS
prepare_docs {
prepare_docs.commands += $$doc_command -prepare $$PREP_DOC_INDEXES -no-link-errors $$QDOC_INCLUDE_PATHS
generate_docs.commands += $$doc_command -generate $$DOC_INDEXES $$QDOC_INCLUDE_PATHS
+ 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 $(QDOC_INCLUDE_PATHS)