2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-26 06:22:26 +00:00
Files
build/lex.jam
Vladimir Prus 12518b72c2 Sundry improvements:
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]
2002-10-07 13:34:14 +00:00

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$(<) $(>)
}