From 1c4ba17015fe99da48ce73fab75ecc60cf9cb975 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Wed, 2 Jun 2021 16:54:21 +1000 Subject: Refactor and update qml CMake API The existing CMake API for qml modules had a number of shortcomings. Refactor it to achieve the following: - Clearly separate public and internal aspects. - Re-use code from qtbase for adding plugins and module targets rather than reimplementing close variations. - Provide more robust and complete support for qmllint, qmlcachegen and automatic generation of qmldir files. - Reduce the steps needed for more common scenarios. - Encourage the use of separate backing library and plugin targets. - Automatically generate the plugin class .cpp file where possible. - Specify .qml files directly through qml-specific API elements rather than assuming they can be extracted out of a set of resources. [ChangeLog][QtQml] The qml CMake API has changed from 6.1 and is now out of Technical Preview status. The most notable change is that .qml files should no longer be specified as resources, there is dedicated handling for them in the qt6_add_qml_module(). A related change is that the qt6_target_qml_files() command has been replaced by qt6_target_qml_sources(). More complete integration with qmlcachegen, qmllint and qmldir generation is also part of the CMake API. Fixes: QTBUG-91621 Task-number: QTBUG-82598 Task-number: QTBUG-88763 Task-number: QTBUG-89274 Task-number: QTBUG-91444 Change-Id: I25aae1b0e89890394dfe2ba2824008164b2ca8d9 Reviewed-by: Qt CI Bot Reviewed-by: Ulf Hermann --- src/qmlworkerscript/doc/qtqmlworkerscript.qdocconf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/qmlworkerscript/doc/qtqmlworkerscript.qdocconf') diff --git a/src/qmlworkerscript/doc/qtqmlworkerscript.qdocconf b/src/qmlworkerscript/doc/qtqmlworkerscript.qdocconf index e56e1759b3..303dee5261 100644 --- a/src/qmlworkerscript/doc/qtqmlworkerscript.qdocconf +++ b/src/qmlworkerscript/doc/qtqmlworkerscript.qdocconf @@ -27,8 +27,7 @@ depends += qtcore qtqml qtquick qtdoc headerdirs += .. -sourcedirs += .. \ - ../../imports/workerscript +sourcedirs += .. exampledirs += snippets -- cgit v1.2.3