Doc: Ensure macOS-specific widget docs are generated on other platforms

The Clang parser in QDoc fails to parse the .mm source files if their
include files are not found. Add a dummy 'AppKit.h' file under the
/doc directory for this purpose, and add its include path to
qtwidgets.qdocconf.

Task-number: QTBUG-77009
Change-Id: Iaa984cb8f860367cbb7aa95808d26fb69d7da349
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
bb10
Topi Reinio 2019-07-11 20:05:52 +02:00
parent 3f8e754f07
commit 7d4c9a6f8f
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
// Dummy header used in documentation build

View File

@ -5,6 +5,9 @@ project = QtWidgets
description = Qt Widgets Reference Documentation
version = $QT_VERSION
# dummy macOS headers for generating docs under non-mac platforms
includepaths += -I./macOS
examplesinstallpath = widgets
qhp.projects = QtWidgets