aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/probe-in-exported-module/modules/mymodule/mymodule.qbs
blob: af1c3304980f6b825d5b1539f60db52158516d7c (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
import qbs

Module {
    Depends { name: "depmodule" }
    Probe {
        id: theProbe
        configure: { found = true; }
    }
    property bool found: theProbe.found
    depmodule.prop: found ? "yes" : "no"

    Rule {
        inputs: ["in"]
        Artifact {
            filePath: "dummy2.txt"
            fileTags: ["out"]
        }
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.description = "Creating out artifact";
            cmd.sourceCode = function() {
                console.info("found: " + product.moduleProperty("mymodule", "found"));
            };
            return [cmd];
        }
    }
}