blob: 29682da1ce4a975a013ab8b6cb24fa6466084cfb (
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
|
import qbs.TextFile
Product {
type: "testproduct"
files: "../lib/lib.h"
Rule {
multiplex: true
Artifact {
fileTags: ["testproduct"]
filePath: "fubar"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating text file";
cmd.sourceCode = function() {
var tf = new TextFile(output.filePath, TextFile.WriteOnly);
tf.writeLine("blubb");
tf.close();
}
return cmd;
}
}
}
|