blob: ae1342bff9fc9eec5298ef973a201389af6c83f5 (
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
28
29
|
import qbs
import qbs.TextFile
MyApplication {
name: "myapp"
type: base.concat("extra-output")
files: "main.cpp"
Group {
fileTagsFilter: "application"
qbs.installDir: "binDir"
fileTags: "extra-input"
}
Rule {
inputs: "extra-input"
Artifact {
filePath: input.baseName + ".txt"
fileTags: "extra-output"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "creating " + output.fileName;
cmd.sourceCode = function() {
var f = new TextFile(output.filePath, TextFile.WriteOnly);
f.close();
}
return cmd;
}
}
}
|