blob: 67f34ed661d5f1e1acea1804bce40e4b09ad8d79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import qbs.TextFile
Module {
property string direct
property string indirect: direct ? "set" : "unset"
Rule {
inputs: ["txt"]
Artifact {
filePath: product.moduleProperty("mymodule", "indirect")
fileTags: ["mymodule"]
}
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];
}
}
}
|