Fix QML_FILES conversion

Use a the more appropriate scope.get_files() to retrieve the qml file
list from the qmake project. This makes it more consitent with the
rest of the conversion script and fixes some issues with incorrect
aliases in qrc files.

Change-Id: I8907516be9457ba0d60d14af53d241197637aa9f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Leander Beernaert 2019-07-25 11:32:38 +02:00
parent 2cc865b943
commit a92f029e2a

View File

@ -1843,7 +1843,7 @@ def write_qml_plugin(cm_fh: typing.IO[str],
if plugindump_dep:
extra_lines.append('QML_PLUGINDUMP_DEPENDENCIES "{}"'.format(plugindump_dep))
qml_files = scope.expand('QML_FILES')
qml_files = scope.get_files('QML_FILES', use_vpath=True)
if qml_files:
extra_lines.append('QML_FILES\n{}{}'.format(
spaces(indent),