Skip to content

Commit

Permalink
qmake: Fix generated *_qmlcache.cpp file paths
Browse files Browse the repository at this point in the history
...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 5d7710a.

Pick-to: 6.2 6.4 6.5
Task-number: QTBUG-108150
Change-Id: Icef9dbf40fc7ade54b584bcdc8799c4cc95ac76d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
  • Loading branch information
jobor committed Dec 14, 2022
1 parent 9fb766e commit e4feab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/qmlcachegen/qtquickcompiler.prf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4feab1

Please sign in to comment.