aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/inputs-from-dependencies/inputs-from-dependencies.qbs
blob: 919060c73f487c1add0e1a335749755c4208c8ec (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Project {
    Product {
        name: "TextFileContainer1"
        type: "txt_container"
        Group {
            files: ["file1.txt", "file2.txt"]
            fileTags: "txt"
        }
    }
    Product {
        name: "TextFileContainer2"
        Group {
            files: ["file3.txt"]
            fileTags: "txt"
        }
    }
    Product {
        name: "TextFileContainer3"
        Group {
            files: ["file4.txt"]
            fileTags: "txt"
        }
    }

    Product {
        name: "TextFileGatherer"
        type: "printed_txt"
        Depends { name: "TextFileContainer1" }
        Depends { name: "TextFileContainer2" }
        Rule {
            inputsFromDependencies: "txt"
            multiplex: true
            Artifact {
                filePath: "blubb"
                fileTags: "printed_txt"
                alwaysUpdated: false
            }
            prepare: {
                var cmd = new JavaScriptCommand();
                cmd.description = "Gathering text files";
                cmd.sourceCode = function() {
                    for (i in inputs.txt)
                        console.info(inputs.txt[i].filePath);
                };
                return cmd;
            }
        }
    }
}