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

Inheritance property failed, Qbs1.6.x works fine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8.1
    • Component/s: General
    • Labels:
      None
    • Environment:
      Windows 7 64bit
    • Commits:
      438c774acf103055612022dfe4f6f2a5bbcd2899

      Description

      I don't know how to describe it, but I can sure it's works fine in Qbs 1.6.x.
      and It's broken QtCreator 4.2.x Qbs build system.
      Please see the example, the install dir is expected to be "qtcreatorcdbext64", but now it's "undefined64".

      import qbs
      
      Project {
          name: "testqbs"
          minimumQbsVersion: "1.7.1"
      
          CppProgram {
              name: "qtcreatorcdbext"
              targetName: name
      
              files: [
                  "main.cpp",
              ]
      
              installDir: {
                  var dirName = name; // !!!!!!!!!!!!$%$#$@# change to 'parent.name' works well
                  if (qbs.architecture.contains("x86_64"))
                      dirName += "64";
                  else
                      dirName += "32";
                  return dirName;
              }
      
              Group {
                  fileTagsFilter: product.type
                  qbs.installDir: installDir
                  qbs.install: true
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            loaden Yuchen Deng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes