aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/QTBUG-51237/qtbug-51237.qbs
blob: 6edea9dc6e24d73d4dfd835dc9114450e8e4562a (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.mymodule.theProperty;
            if (!theProperty)
                throw "Oh no!";
            var dummy = new JavaScriptCommand();
            dummy.silent = true;
            dummy.sourceCode = function() {};
            return [dummy];
        }
    }
}