diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-12-14 11:20:45 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-12-14 22:28:29 +0000 |
commit | f1be2e96c98b340e3f7e0e6f51d16061d0342e3c (patch) | |
tree | 06ca549995622d8a792720dab25d53476c6bd10c /tools | |
parent | cffac1d4af6f9ad5769af52825cb681baf8e118c (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.
Task-number: QTBUG-108150
Change-Id: Icef9dbf40fc7ade54b584bcdc8799c4cc95ac76d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit e4feab199220ae022927d8471bd96779ea4bca48)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tools')
-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) |