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

disable 'Export' for disabled component

    XMLWordPrintable

Details

    • 9ecc36e2eb1f8e12cf6537cad40acbf3890ed156, 7e630a14369d30d7658ebda34ac6233ec1be1a2e

    Description

      Acc. to my experience it looks like that the Export section of a disabled component (i.e. the condition for that component evaluates to false) is still enabled and has to disabled explicitly, too.

      So situation is like:

      ...
      Product {
        name: "test_without_explicit_Export_condition"
        condition: false
      
        Export {
            Depends { name: "cpp" }
            cpp.includePaths: { throw "Should not throw but does" }
            ...
        }
        ...
      }
      

      My current workaround is

      ...
      Product {
        name: "with_explicit_Export_condition"
        condition: false
      
        Export {
            condition: product.condition
            ...
        }
        ...
      }
      

      I'm not really sure whether to classify that as a bug but at least it is not what one would expect.

      Attachments

        For Gerrit Dashboard: QBS-1250
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            heiko_nardmann Heiko Nardmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes