blob: ab4e07170357c55b124d82e0bf9994b81960ce69 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
import qbs.Host
Project {
CppApplication {
name: "thetool"
consoleApplication: true
files: "main.cpp"
property bool skip: {
var result = qbs.targetPlatform !== Host.platform();
if (result)
console.info("Skip this test");
return result;
}
install: true
installDir: ""
qbs.installPrefix: ""
Group {
fileTagsFilter: ["application"]
fileTags: ["thetool.thetool"]
}
Export {
Depends { name: "cpp" }
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];
}
}
}
}
Product {
name: "user-in-project"
type: ["thetool.output"]
Depends { name: "thetool" }
}
}
|