Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
5.12.2, 5.15
-
-
42d0089d44bec5628884d8cf6bf2b910a298a141
Description
In some cases, like implementing compile-time-enabled features, it might be necessary to have more than one 'qml root' for qmlimportscanner, which is already capable to handle multiple roots, but the issue is that qmake / androiddeployqt are a bit too stupid (or smart?) and disallow to use this functionality.
Currently QML_ROOT_PATH is used as the value for 'qml-root-path' in qmake-produced '...-deployment-settings.json'. Androiddeployqt just parse json file and pass 'qml-root-path'-s value to qmlimportscanner. From the first look it should be possible to compose QML_IMPORT_PATH like '$$PWD/root1/qml $$PWD/root2/qml' as the result of which qmlimportscanner would work with two roots, but unfortunately this hack doesn't work -androiddeployqt just escapes all the whitechars.
I fail to understand the reason for disallowing just one QML_ROOT_PATH and think it should allow to specify list of roots for better flexibility.