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

Make it possible to refer to custom Rule properties in prepare script

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 1.10.0, 1.11.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Any

      Description

      To make it easier to re-use custom Rule items, please make it possible to create custom properties inside them.

       

      myrule.qbs:
      
      import qbs
      Rule {
      
          property var myProperty: "test"
      }
      
      
      Re-use of that rule:
      myproject.qbs:
      
      import "myrule.qbs" as MyRule
      ...
      MyRule { myProperty: "1" }
      MyRule { myProperty: "2" }
      MyRule { myProperty: "3" }
      MyRule { myProperty: "etc" }
      
      

       

       

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            pyrrhula Ola Røer Thorsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes