aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/target-artifact-status/target-artifact-status.qbs
blob: 2f5776613be59a77a978a34f2458088801106057 (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.TextFile

Product {
    name: "p"
    type: "p_type"
    property bool enableTagging
    Rule {
        multiplex: true
        Artifact { filePath: "a1"; fileTags: "p_type" }
        Artifact { filePath: "a2"; fileTags: "x" }
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.description = "generating outputs";
            cmd.sourceCode = function() {
                var f = new TextFile(outputs.p_type[0].filePath, TextFile.WriteOnly);
                f.close();
                f = new TextFile(outputs.x[0].filePath, TextFile.WriteOnly);
                f.close();
            };
            return cmd;
        }
    }
    Group {
        condition: enableTagging
        fileTagsFilter: "x"
        fileTags: "p_type"
    }
}