From a7472867f407f1226d82aa7bce4cd4d6f9bd652f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Mon, 2 Jul 2018 22:27:11 +0200 Subject: Make QtDeclarative work for the no-thread config Force use of the basic render loop, adapt qqmlthread and qqmltypeloader to work on a single thread. Disable components and features that require worker threads: qmldb_server, worker script, shapes, folderlistmodel, threaded render loop, software renderer. Done-with: Lorn Potter Change-Id: I77d965947f684f8b7d19284b5decd893395316cb Reviewed-by: Lorn Potter --- src/qml/types/types.pri | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/qml/types/types.pri') diff --git a/src/qml/types/types.pri b/src/qml/types/types.pri index 492f408271..e0ff57a13e 100644 --- a/src/qml/types/types.pri +++ b/src/qml/types/types.pri @@ -5,7 +5,6 @@ SOURCES += \ $$PWD/qqmlmodelindexvaluetype.cpp \ $$PWD/qqmlobjectmodel.cpp \ $$PWD/qquickpackage.cpp \ - $$PWD/qquickworkerscript.cpp \ $$PWD/qqmlinstantiator.cpp \ $$PWD/qqmltableinstancemodel.cpp @@ -16,11 +15,17 @@ HEADERS += \ $$PWD/qqmlmodelindexvaluetype_p.h \ $$PWD/qqmlobjectmodel_p.h \ $$PWD/qquickpackage_p.h \ - $$PWD/qquickworkerscript_p.h \ $$PWD/qqmlinstantiator_p.h \ $$PWD/qqmlinstantiator_p_p.h \ $$PWD/qqmltableinstancemodel_p.h +qtConfig(thread) { + SOURCES += \ + $$PWD/qquickworkerscript.cpp + HEADERS += \ + $$PWD/qquickworkerscript_p.h +} + qtConfig(qml-list-model) { SOURCES += \ $$PWD/qqmllistmodel.cpp \ -- cgit v1.2.3