Fix CONFIG+=qtquickcompiler and immediate resources with shadow builds
Generated files should be added to RESOURCES with an absolute path. Task-number: QTBUG-67011 Change-Id: Ief82b576824df9abd0901970f076e30dfe57b7d0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
1cb439dc94
commit
0ffb7c419a
@ -33,7 +33,7 @@ for(resource, RESOURCES) {
|
||||
next()
|
||||
}
|
||||
|
||||
resource_file = $$RCC_DIR/qmake_$${resource}.qrc
|
||||
resource_file = $$absolute_path($$RCC_DIR/qmake_$${resource}.qrc, $$OUT_PWD)
|
||||
|
||||
isEmpty(BUILDS)|build_pass {
|
||||
# Collection of files, generate qrc file
|
||||
@ -64,7 +64,7 @@ for(resource, RESOURCES) {
|
||||
"</qresource>" \
|
||||
"</RCC>"
|
||||
|
||||
!write_file($$absolute_path($$resource_file, $$OUT_PWD), resource_file_content): \
|
||||
!write_file($$resource_file, resource_file_content): \
|
||||
error()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user