blob: 9c0f01217279c4656ebc020d8e49f868a16fc4a5 (
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.TextFile
Product {
name: "theProduct"
type: ["output"]
version: "1"
property bool dummy: false
Rule {
inputs: []
multiplex: true
Artifact {
filePath: "output.out"
fileTags: ["output"]
}
prepare: {
console.info("running the rule: " + product.dummy);
var cmd = new JavaScriptCommand();
cmd.description = "creating output";
cmd.sourceCode = function() {
console.info(product.version);
var f = new TextFile(output.filePath, TextFile.WriteOnly);
f.close();
}
return [cmd];
}
}
}
|