blob: de9c4e935e0974fe7d2c0cf626fb72d21858201b (
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
|
import qbs.FileInfo
import qbs.Host
Module {
Depends { name: "cpp" }
Group {
name: "thetool binary"
files: FileInfo.cleanPath(FileInfo.joinPaths(path, "..", "..",
"thetool" + (Host.os().contains("windows") ? ".exe" : "")));
fileTags: ["thetool.thetool"]
filesAreTargets: true
}
Rule {
multiplex: true
explicitlyDependsOnFromDependencies: ["thetool.thetool"]
Artifact {
filePath: "tool-output.txt"
fileTags: ["thetool.output"]
}
prepare: {
var cmd = new Command(explicitlyDependsOn["thetool.thetool"][0].filePath,
output.filePath);
cmd.description = "running the tool";
return [cmd];
}
}
}
|