]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/tools/bison.jam
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / src / tools / bison.jam
1 # Copyright 2003 Vladimir Prus
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
4
5 import generators ;
6 import feature ;
7 import type ;
8 import property ;
9
10 feature.feature bison.prefix : : free ;
11 type.register Y : y ;
12 type.register YY : yy ;
13 generators.register-standard bison.bison : Y : C H ;
14 generators.register-standard bison.bison : YY : CPP HPP ;
15
16 rule init ( )
17 {
18 }
19
20 rule bison ( dst dst_header : src : properties * )
21 {
22 local r = [ property.select bison.prefix : $(properties) ] ;
23 if $(r)
24 {
25 PREFIX_OPT on $(<) = -p $(r:G=) ;
26 }
27 }
28
29 actions bison
30 {
31 bison $(PREFIX_OPT) -d -o $(<[1]) $(>)
32 }