blob: 8f4634368d5db4bf7a68c744ff9cbdd7f2b8f460 (
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
|
import qbs.FileInfo
import qbs.Host
Project {
CppApplication {
condition: {
var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result;
}
name: "helper-app"
type: ["application", "test-helper"]
consoleApplication: true
install: true
files: "helper-main.cpp"
cpp.executableSuffix: ".exe"
Group {
fileTagsFilter: "application"
fileTags: "test-helper"
}
}
CppApplication {
name: "test-app"
type: ["application", "autotest"]
Depends { name: "autotest" }
files: "test-main.cpp"
}
AutotestRunner {
Depends {
name: "cpp" // Make sure build environment is set up properly.
condition: Host.os().contains("windows") && qbs.toolchain.contains("gcc")
}
arguments: FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix, "bin")
auxiliaryInputs: "test-helper"
}
}
|