Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1248

The multiplexByQbsProperties property can't reference the type property when the type property references a module property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.11.0
    • None

      For example, the following fails with:

      import qbs
      Product {
          type: Qt.core.staticBuild ? "staticlibrary" : "dynamiclibrary"
          Depends { name: "Qt.core"; requiredVersion: "5.6" }
          multiplexByQbsProperties: type.contains("foo") ? ["buildVariants"] : []
      }
      ERROR: /private/tmp/test.qbs:3 Can't find variable: Qt

      It seems to be specific to both 'type' and 'multiplexByQbsProperties'. Replacing type with targetName in this example results in a successful build. Also, if type references Qt.core but multiplexByQbsProperties does NOT reference type, there is also no error. It's only when they're both set in this way.

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

            kandeler Christian Kandeler
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes