From 0f74e642bf1f13f6b097b1a8e1412ca3cb6e85b5 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 28 May 2019 14:47:51 +0200 Subject: Exclude the resources when building statically as qmake will handle this As qmake will combine all the QML files etc together for us in static mode then we should not include those added to the resources explicitly in the pro file otherwise we will end up with an extra copy. Additionally, if qrc:/ was added to the import path list it would end trying to load the files from there and not from the qrc:/qt-project.org/imports location as a result. Change-Id: Icbaea7c6103074f9468914365b099be4589bee37 Reviewed-by: Mitch Curtis --- src/controls/controls.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/controls.pro b/src/controls/controls.pro index 3119d33d..39a78904 100644 --- a/src/controls/controls.pro +++ b/src/controls/controls.pro @@ -78,7 +78,7 @@ INCLUDED_RESOURCE_FILES += $$SHADER_FILES controls.files = $$INCLUDED_RESOURCE_FILES controls.prefix = /QtQuick/Controls -RESOURCES += controls +!static:RESOURCES += controls CONFIG += no_cxx_module load(qml_plugin) -- cgit v1.2.1