Fix qmldir copying in debug and release builds on Windows

This is a backport of 6cc02ce6c8 from 5.7.

In a parallel build we may end up copying the qmldir file at the same
time, which doesn't work on Windows due to file locking. Apply the same
guard for the copying condition as in commit
770a0c91f3.

Task-number: QTBUG-57153
Change-Id: Ibac759b16cebaf04f5d2f785211b62071aa656a8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
bb10
Joerg Bornemann 2016-11-15 17:28:44 +01:00 committed by Oswald Buddenhagen
parent 0810d48bc4
commit 435e7b17a3
1 changed files with 5 additions and 1 deletions

View File

@ -28,4 +28,8 @@ qmldir.files = $$fq_qml_files
qmldir.path = $$instbase/$$TARGETPATH
INSTALLS += qmldir
!prefix_build: COPIES += qmldir
!debug_and_release|!build_all|CONFIG(release, debug|release) {
!prefix_build {
COPIES += qmldir
}
}