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

Depends's "required" property doesn't work with product dependencies

XMLWordPrintable

    • 18fd05100ec274c49e85944482a13334d4588b03

      The following code is compiling with command: qbs build -p bar

      import qbs
      
      Project  {
          CppApplication {
              name: "foo"
              files: ["*.c"]
          }
          CppApplication {
              name: "bar"
              files: ["bar/*.c"]
              Depends {
                  name: "foo"
                  required: false //true
              }
          }
      }
      

      If required is false, foo isn't compiled at all, foo.present is false and exported properties isn't affect dependent product.
      If required is true, foo is compiled and foo.present is undefined.

      Documentation doesn't state that required and present properties should works with product dependencies, but it would be useful, e.g. for implementing configuration tests.

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

            kandeler Christian Kandeler
            brerrabbit Max Tim
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes