aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/multiple-changes/multiple-changes.qbs
blob: 51e6b1a5ce3846d3f4f24fc0cd23606aa0a87a0e (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
29
30
31
Project {
    property bool prop: false
    Product {
        name: "test"
        type: ["out-type"]
        Group {
            name: "Rule input"
            files: ["dummy.txt"]
            fileTags: ["in-type"]
        }
        Group {
            name: "irrelevant"
            files: ["*.blubb"]
        }
        Rule {
            inputs: ["in-type"]
            Artifact {
                filePath: "dummy.out"
                fileTags: product.type
            }
            prepare: {
                var cmd = new JavaScriptCommand();
                cmd.silent = true;
                cmd.sourceCode = function() {
                    console.info("prop: " + project.prop);
                }
                return [cmd];
            }
        }
    }
}