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

Fix handling of QT_FOR_PRIVATE when generating projects

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • P2: Important
    • None
    • None
    • Build System
    • None

    Description

      Qt module .pro files that declare QT_FOR_PRIVATE dependencies are meant to be transitive dependencies for consumers of the private module counter part.

      In lay man words
      qtwayland/src/client/client.pro content:

      MODULE = waylandclient
      QT_FOR_PRIVATE += service_support-private
      

      That means that any other module that depends on waylandclient-private, also transitively depends on service_support-private.

      QT_PRIVATE += waylandclient-private
      # Implies QT_PRIVATE += service_support-private
      

      So in CMake terms we would have to generate the following snippet for the wayland client project

      qt_extend_target(
        WaylandClient
        PRIVATE_MODULE_INTERFACE Qt6::ServiceSupportPrivate
      )
      

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes