]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/tools/lex.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / lex.jam
1 # Copyright 2003 Vladimir Prus
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
4
5 import type ;
6 import generators ;
7 import feature ;
8 import toolset : flags ;
9
10 feature.feature flex.prefix : : free ;
11 type.register LEX : l ;
12 type.register LEX++ : ll ;
13 generators.register-standard lex.lex : LEX : C ;
14 generators.register-standard lex.lex : LEX++ : CPP ;
15
16 rule init ( )
17 {
18 }
19
20 flags lex.lex PREFIX <flex.prefix> ;
21
22 actions lex
23 {
24 flex -P$(PREFIX) -o$(<) $(>)
25 }