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

QMAKE wrong "contains" working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.9.6
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Part of project file:

      contains($$QT_VERSION,5.9.6)
      {
          contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
              ARCHIPATH = Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_6_for_Android_armv7_0b1bb7
          }
      }
      
      contains($$QT_VERSION,5.13.0)
      {
          contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
              ARCHIPATH = Android_for_armeabi_v7a_GCC_4_9_Qt_5_13_0_android_armv7_acfd3c
          }
      }
      
      message($$ARCHIPATH)
      message($$QT_VERSION)
      

      Output:

      Project MESSAGE: Android_for_armeabi_v7a_GCC_4_9_Qt_5_13_0_android_armv7_acfd3c
      Project MESSAGE: 5.9.6
      

      Removing:

      contains($$QT_VERSION,5.9.6)
      {
          contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
              ARCHIPATH = Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_6_for_Android_armv7_0b1bb7
          }
      }
      
      #contains($$QT_VERSION,5.13.0)
      #{
      #   contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
      #        ARCHIPATH = Android_for_armeabi_v7a_GCC_4_9_Qt_5_13_0_android_armv7_acfd3c
      #    }
      #}
      
      message($$ARCHIPATH)
      message($$QT_VERSION)
      

      Output:

      Project MESSAGE: Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_6_for_Android_armv7_0b1bb7
      Project MESSAGE: 5.9.6
      

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            gourmand64 Gourmet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes