blob: 244f80abe310dee4fd4511c796f71630ac995e3f (
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
30
31
32
|
import qbs 1.0
import qbs.TextFile
Product {
name: "install-test"
type: ["text"]
qbs.installPrefix: ""
Group {
qbs.install: true
qbs.installDir: "textfiles"
fileTagsFilter: "text"
}
Rule {
multiplex: true
Artifact {
filePath: "HelloWorld.txt"
fileTags: ["text"]
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "Creating file:'" + output.fileName + "'";
cmd.highlight = "codegen";
cmd.sourceCode = function() {
var file = new TextFile(output.filePath, TextFile.WriteOnly);
file.writeLine("Hello World!")
file.close();
}
return cmd;
}
}
}
|