Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94581 Review and Document new Qt 6.2 CMake API
  3. QTBUG-95144

Revise qml import path passing to tools like qmllint, qmlcachegen

    XMLWordPrintable

Details

    • 4ed6bed11c2f308b39bcf52435de446c90f80f8e (qt/qtdeclarative/dev) 17bea746b4f8215be03c15243a86301f77f782ab (qt/qtdeclarative/6.2)

    Description

      Context
      https://git.qt.io/alcroito/qt6-cmake-api-review/-/commit/14b4999bc857f5402a3577fe334ebfb3602ad0c2#f3ff9c1b48af14adf093e2af0c5cf2849829bb6d_149_201

      If we are trying to run qmllint on a qml file belonging to $backing_target and $backing_target is an executable, CMake should pass -I ${CMAKE_CURRENT_BINARY_DIR} of the executable to qmlint.
      Same should be done for qmlcachegen and other tooling.

      If we are trying to run qmllint on a qml file belonging to a library, not an executable, we need to use the backtracking algorithm that Ulf suggests.
      i.e. Remove TARGET_PATH from the end of CMAKE_CURRENT_BINARY_DIR
      Details in context link. Search for 'OPTION1_MARKER'.

      Attachments

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

        Activity

          People

            crscott Craig Scott
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: