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

Parent folder for groups within modules not documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.8.0
    • 1.4.2
    • Documentation
    • None
    • 25a2db72b042c69bd01c0d7c30ff22b29efd3d72

    Description

      Consider a module with a nested group:

      import qbs 1.0
      
      Module {
          Depends { name : "cpp" }
          Group {
              prefix: path + "/"
              files : [
                  "file.cpp"
              ]
              cpp.optimization : "fast"
          }
      }
      
      

      The documentation for groups sais:

      By default, matching files are only picked up directly from the parent directory, but you can tell Qbs to consider the whole directory tree.

      If the group is defined in a product, the parent directory is automatically set to the location of the product qbs file. For groups within modules, the parent directory is still the same location which is unexpected. For source files in the module directory, one has to set prefix explicitly to path (above example) which is not documented and also smells incosistent.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes