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

The "outputArtifacts" script needs a way to attach module properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.3.0
    • 1.2.2
    • General
    • None
    • 38a47ae98b37ec3b2062763f04a083e1592905f5

    Description

      At the moment, the static output artifacts syntax allows attaching module properties, while the dynamic one does not:

      Artifact {
          fileTags: "blubb"
          fileName: "x"
          cpp.includes: "mydir" // Ok.
      }
      
      outputArtifacts: {
          return [{
              fileTags: "blubb",
              filePath: "x",
              cpp.includes: "mydir" // Syntax error
          }]
      }
      

      This is a serious defect, because the outputArtifacts script was designed to be more powerful than the old syntax. It therefore must have feature parity, or there will be situations where neither one suffices.
      Example use case: The dynamic library linker on Unix, where we may or may not want to create symbolic links to the library, so the number of output artifacts should be dynamic, but we also need to attach cpp properties to one of the artifacts.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            kandeler Christian Kandeler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes