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

Inheritance property failed, Qbs1.6.x works fine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.8.1
    • 1.7.1
    • General
    • None
    • Windows 7 64bit
    • 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

        1. testqbs.rar
          0.8 kB
          Yuchen Deng
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            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