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

Inheritance property failed, Qbs1.6.x works fine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.8.1
    • 1.7.1
    • General
    • None
    • Windows 7 64bit
    • 438c774acf103055612022dfe4f6f2a5bbcd2899

      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
              }
          }
      }
      

        1. testqbs.rar
          0.8 kB
          Yuchen Deng
        For Gerrit Dashboard: QBS-1117
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes