blob: 243ab09b5e2e12794b049d486a5a40f56fe3e94a (
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
|
import qbs.Host
CppApplication {
condition: {
var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result;
}
qbsSearchPaths: ".."
Depends { name: "bisonhelper" }
Depends { name: "lex_yacc" }
lex_yacc.outputTag: "cpp"
lex_yacc.yaccFlags: ["-l"]
cpp.includePaths: [".", ".."]
cpp.cxxLanguageVersion: "c++11"
cpp.minimumMacosVersion: "10.7"
consoleApplication: true
Probe {
id: pathCheck
property string theDir: {
if (qbs.targetOS.contains("windows")) {
if (qbs.toolchain.contains("mingw"))
return cpp.toolchainInstallPath;
if (qbs.toolchain.contains("clang") && qbs.sysroot)
return qbs.sysroot + "/bin";
}
}
configure: {
if (theDir)
console.info("add to PATH: " + theDir);
found = true;
}
}
files: [
"lexer.l",
"parser.y",
"types.h",
]
}
|