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

Fix handling of QT_FOR_PRIVATE when generating projects

XMLWordPrintable

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

      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
      )
      

        For Gerrit Dashboard: QTBUG-83063
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes