aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/build-directories/build-directories.qbs
blob: be7672ecfeaf1c100348b70687ca4aab852eb63b (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
Project {
    Product {
        name: "p1"
        type: "blubb1"
        Rule {
            multiplex: true
            outputFileTags: "blubb1"
            prepare: {
                var cmd = new JavaScriptCommand();
                cmd.silent = true;
                cmd.sourceCode = function() {
                    console.info(product.buildDirectory);
                }
                return cmd;
            }
        }
    }
    Product {
        name: "p2"
        type: "blubb2"
        Depends { name: "p1" }
        Rule {
            inputsFromDependencies: "blubb1"
            outputFileTags: "blubb2"
            prepare: {
                var cmd = new JavaScriptCommand();
                cmd.silent = true;
                cmd.sourceCode = function() {
                    console.info(product.buildDirectory);
                    console.info(project.buildDirectory);
                    console.info(project.sourceDirectory);
                }
                return cmd;
            }
        }
    }
}