aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs
blob: 8d6c1f5dae72e372fe41b06b8b3d9030dbd9066c (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
import qbs.TextFile

Product {
    type: "p"
    Rule {
        multiplex: true
        Artifact { filePath: "dummy.txt"; fileTags: "t1"; alwaysUpdated: false }
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.description = "creating dummy";
            cmd.sourceCode = function() {};
            return cmd;
        }
    }
    Rule {
        inputs: "t1"
        Artifact { filePath: "o.txt"; fileTags: "p" }
        prepare: {
            var cmd = new JavaScriptCommand;
            cmd.description = "creating final";
            cmd.sourceCode = function() {
                var f = new TextFile(output.filePath, TextFile.WriteOnly);
                f.close();
            };
            return cmd;
        }
    }
}