blob: 62d7f8fe1bcce31bab609a585c571fda916bb704 (
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 {
pattern: "*.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;
}
}
}
|