Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75187

Please turn 'qml-root-path' into 'qml-root-paths'

    XMLWordPrintable

Details

    • Android
    • 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. 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            beholder Alexander Ivash
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes