blob: 988c6657e45a61be6e834224bd0ecf464d82db50 (
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 1.0
import qbs.TextFile
Module {
property bool buildZort: true
FileTagger {
patterns: "*.narf"
fileTags: ["narf"]
}
Rule {
condition: product.moduleProperty("narfzort", "buildZort");
inputs: ["narf"]
Artifact {
fileName: product.name + "." + input.fileName + ".zort"
fileTags: ["zort"]
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.sourceCode = function() {
var f = new TextFile(output.fileName, TextFile.WriteOnly);
f.write("NARF! ZORT!");
f.close();
}
return cmd;
}
}
}
|