blob: 449b130e2c08604b181e3afa22074aca1c369c2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import qbs
import qbs.Process
Module {
Depends { name: "lex_yacc" }
Probe {
id: bisonProbe
property string yaccBinary: lex_yacc.yaccBinary
configure: {
var p = Process();
found = p.exec(yaccBinary, ["-V"]) == 0 && p.readStdOut().contains("bison");
p.close();
}
}
Properties {
condition: bisonProbe.found
lex_yacc.yaccFlags: "-y"
}
}
|