From f1be2e96c98b340e3f7e0e6f51d16061d0342e3c Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 14 Dec 2022 11:20:45 +0100 Subject: qmake: Fix generated *_qmlcache.cpp file paths ...for source files that are outside of the source directory. Having QML files that are generated in the build directory led to *_qmlcache.cpp files with very long file names, hitting file system limitations on Windows. Apply the same fix that was done for generated qmlcache.qrc files in commit 5d7710a623ecde64316c42fd097db386ac28dd51. Task-number: QTBUG-108150 Change-Id: Icef9dbf40fc7ade54b584bcdc8799c4cc95ac76d Reviewed-by: Alexandru Croitor Reviewed-by: Fabian Kosmale (cherry picked from commit e4feab199220ae022927d8471bd96779ea4bca48) Reviewed-by: Qt Cherry-pick Bot --- tools/qmlcachegen/qtquickcompiler.prf | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/qmlcachegen/qtquickcompiler.prf b/tools/qmlcachegen/qtquickcompiler.prf index 262ed08785..b7413a3de3 100644 --- a/tools/qmlcachegen/qtquickcompiler.prf +++ b/tools/qmlcachegen/qtquickcompiler.prf @@ -77,6 +77,7 @@ for(res, QMLCACHE_RESOURCE_FILES) { defineReplace(qmlCacheOutputName) { name = $$absolute_path($$1, $$OUT_PWD) name = $$relative_path($$name, $$_PRO_FILE_PWD_) + contains(name, ^\\.\\..*): name = $$relative_path($$1, $$OUT_PWD) name = $$replace(name, \\.qml$, _qml) name = $$replace(name, \\.js$, _js) name = $$replace(name, \\.mjs$, _mjs) -- cgit v1.2.3