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

Obsolete logic in unix configure script

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.4
    • 4.7.1
    • Build System
    • None
    • 66242e0e492137e051273055f566c3edd42c07e9

    Description

      The configure script contains logic to try to figure out what platform it is building for based on the presence or absence of certain platform-specific source files. However, since Qt 4.6.0, we stopped making platform-specific source packages, so the logic (reproduced below) is no longer useful and needs to be reworked.

      #-------------------------------------------------------------------------------
      # window system detection
      #-------------------------------------------------------------------------------
      
      PLATFORM_X11=no
      PLATFORM_MAC=no
      PLATFORM_QWS=no
      
      if [ -f "$relpath"/src/gui/kernel/qapplication_mac.mm ] && [ -d /System/Library/Frameworks/Carbon.framework ]; then
          # Qt/Mac
          # ~ the Carbon SDK exists
          # ~ src/gui/base/qapplication_mac.cpp is present
          # ~ this is the internal edition and Qt/Mac sources exist
          PLATFORM_MAC=maybe
      elif [ -f "$relpath"/src/gui/kernel/qapplication_qws.cpp ]; then
          # Qt Embedded
          # ~ src/gui/base/qapplication_qws.cpp is present
          # ~ this is the free or commercial edition
          # ~ this is the internal edition and Qt Embedded is explicitly enabled
          if [ -f "$relpath"/src/gui/kernel/qapplication_mac.mm ]; then
              # This is a depot build, or an all-platforms package
              PLATFORM_QWS=maybe
          else
              # This must be the embedded package, since the Qt/Mac source files are not present
              PLATFORM_QWS=yes
          fi
      fi
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes