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

SubProject item does not override Product properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 1.15.0
    • Fix Version/s: None
    • Component/s: API: JavaScript, General
    • Labels:
      None

      Description

      Suppose there is QBS file that contains a Product (not Project):

      // Library.qbs
      
      StaticLibrary
      {
          property string override_this: “something”
      }
      

      And in another QBS file it is referenced via SubProject:

      // SomeProject.qbs
      
      Project
      {
          SubProject
          {
              filePath: “Library.qbs”
              Properties { override_this: “something else” }
          }
      }

      This will not work.

      Given that it is called “SubProject” it is probably not meant for that, I suppose. On the other hand it successfully references files that do not contain Project items, just Product ones, so I assumed that would work.

      Nevertheless, could you extend this property overriding functionality for Products too? There are workarounds for that, of course, but they are not as elegant as using the SubProject item.

        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:
            clintwestwood Clint Westwood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes