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

Depends.profiles does not work when dependency has an aggregator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.16.0
    • 1.15.0
    • Dependency Tracking
    • None
    • ac110221332cdae2b7716f886178af27f16d98a3 (qbs/qbs/master)

    Description

      Project {
          Profile {
              name: "profile1"
          }
          Profile {
              name: "profile2"
          }
      
          Product {
              name: "dep"
              qbs.profiles: ["profile1", "profile2"]
              aggregate: true
              Depends { name: "cpp" }
      
              Export {
                  Depends { name: "cpp" }
                  cpp.defines: product.qbs.profile
              }
          }
          Product {
              name: "main"
              Depends { name: "dep"; profiles: ["profile1"]; }
              Depends { name: "cpp" }
              property string whatstheprofile: {
                  console.info(cpp.defines);
              }
          }
      }
      
      • Expected output: "profile1".
      • Actual output: "none"

      Depends.profiles should always override aggregate.

      Attachments

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

        Activity

          People

            rweickelt Richard Weickelt
            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