Logo Search packages:      
Sourcecode: abakus version File versions  Download package

lex.py

import SCons.Defaults
import SCons.Tool
import SCons.Util
def generate(env):
    c_file, cxx_file=SCons.Tool.createCFileBuilders(env)
    c_file.add_action('.l', SCons.Defaults.LexAction)
    cxx_file.add_action('.ll', SCons.Defaults.LexAction)
    env['LEX']     =env.Detect('flex') or 'lex'
    env['LEXFLAGS']=SCons.Util.CLVar('')
    env['LEXCOM']  ='$LEX $LEXFLAGS -t $SOURCES > $TARGET'
def exists(env):
    return env.Detect(['flex', 'lex'])

Generated by  Doxygen 1.6.0   Back to index