aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/QTBUG-51237/qtbug-51237.qbs
blob: e1f8d8ef646e599e29bac4c5ada872dbdad26f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import qbs

Product {
    type: "custom"
    Depends { name: "mymodule" }
    Rule {
        multiplex: true
        Artifact {
            filePath: "dummy.custom"
            fileTags: ["custom"]
        }
        prepare: {
            var theProperty = product.moduleProperty("mymodule", "theProperty");
            if (!theProperty)
                throw "Oh no!";
            var dummy = new JavaScriptCommand();
            dummy.silent = true;
            dummy.sourceCode = function() {};
            return [dummy];
        }
    }
}