mirror of
https://github.com/boostorg/build.git
synced 2026-01-26 06:22:26 +00:00
Bison and lex support.
unit-test rule
--version option
default build really works
* new/build-system.jam: Bugfixes. Added "--version" option.
* new/project.jam: If default-build is not specifies, don't stick "debug".
* new/property.jam (evaluate-conditionals): New rule.
* new/targets.jam (basic-target.generate): Evalute conditional properties.
* test/BoostBuild.py (Tester.maybe_do_diff): New method.
(Tester.run_build_system): Call the above method when
appropriate.
[SVN r15771]
25 lines
414 B
Plaintext
25 lines
414 B
Plaintext
|
|
import type ;
|
|
import generators ;
|
|
import feature ;
|
|
import property ;
|
|
|
|
feature.feature flex.prefix : : free ;
|
|
|
|
type.register LEX : l ;
|
|
|
|
generators.register-standard lex.lex : LEX : C ;
|
|
|
|
rule lex ( target : source : properties * )
|
|
{
|
|
local r = [ property.select flex.prefix : $(properties) ] ;
|
|
if $(r)
|
|
{
|
|
PREFIX on $(<) = $(r:G=) ;
|
|
}
|
|
}
|
|
|
|
actions lex
|
|
{
|
|
flex -P$(PREFIX) -o$(<) $(>)
|
|
} |