diff options
author | Topi Reinio <topi.reinio@qt.io> | 2019-03-04 12:41:28 +0100 |
---|---|---|
committer | Aapo Keskimolo <aapo.keskimolo@qt.io> | 2019-03-11 17:02:01 +0000 |
commit | 81b3f3e63ae0739d4e4840e4f401f78d829e0daf (patch) | |
tree | 268ce1fd8032dd0c9ae610f2378ab9732027cee5 /doc/doc.pro | |
parent | 75c119b6fafc24deb829d7badb62954a81c820c1 (diff) |
Fix documentation build on Clang-enabled QDoc
When building documentation with QDoc from Qt 5.11 or later, C++
sources are parsed by Clang. Clang expects a complete set of
include paths for resolving the types in the documented API, as
well as a module header to build a precompiled header from.
To do this, convert the /doc directory to a proper subproject
and add suitable dependencies to get the right include paths
from qmake. As QmlLive is not a Qt module, docs must also
maintain a 'dummy' module header that is passed to Clang.
Fix also remaining documentation warnings, most importantly,
the syntax of \fn commands.
Change-Id: I2e912dbc509e2bd40691463e4608081372b5d6a2
Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
Reviewed-by: Svetlana Abramenkova <sabramenkova@luxoft.com>
Diffstat (limited to 'doc/doc.pro')
-rw-r--r-- | doc/doc.pro | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/doc.pro b/doc/doc.pro new file mode 100644 index 0000000..4c486dc --- /dev/null +++ b/doc/doc.pro @@ -0,0 +1,19 @@ +TEMPLATE = aux + +CONFIG += force_qt +QT *= quick network + +build_online_docs: { + QMAKE_DOCS_TARGETDIR = qmllive + QMAKE_DOCS = $$PWD/qmllive-online.qdocconf +} else { + QMAKE_DOCS = $$PWD/qmllive.qdocconf +} + +include(doc.pri) + +OTHER_FILES += \ + $$PWD/*.qdocconf \ + $$PWD/*.qdoc \ + $$PWD/examples/*.qdoc \ + $$PWD/images/*.png |