diff options
author | Joerg Bornemann <[email protected]> | 2022-12-14 11:20:45 +0100 |
---|---|---|
committer | Joerg Bornemann <[email protected]> | 2022-12-14 17:39:55 +0100 |
commit | e4feab199220ae022927d8471bd96779ea4bca48 (patch) | |
tree | cb380e43b5830ab92192e85e594af841c9656892 | |
parent | 9fb766ecd03cc12f21525bcd87290fae1df28ec2 (diff) |
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.
Pick-to: 6.2 6.4 6.5
Task-number: QTBUG-108150
Change-Id: Icef9dbf40fc7ade54b584bcdc8799c4cc95ac76d
Reviewed-by: Alexandru Croitor <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
-rw-r--r-- | tools/qmlcachegen/qtquickcompiler.prf | 1 |
1 files changed, 1 insertions, 0 deletions
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) |