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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 1.11.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes