aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/probes-and-array-properties/modules/mymodule/mymodule.qbs
blob: b76cffa002eec8eb785394412a194a9c320afbde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import qbs

Module {
    Probe {
        id: propProbe
        property stringList prop: []
        configure: {
            prop = [];
            prop.push("probe");
            found = true;
        }
    }

    property stringList prop: propProbe.found ? propProbe.prop : ["other"]

    Rule {
        multiplex: true
        outputFileTags: "the-output"
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.description = "generating dummy";
            cmd.sourceCode = function() {
                console.info("prop: " + JSON.stringify(product.mymodule.prop));
            }
            return [cmd];
        }
    }
}