SCons User Guide 0.92 | ||
---|---|---|
<<< Previous | Writing Your Own Builders | Next >>> |
SCons supports the ability for a Builder to modify the lists of target(s) from the specified source(s).
def modify_targets(XXX): return XXX bld = Builder(action = 'XXX', suffix = '.foo', src_suffix = '.input', emitter = modify_targets) env = Environment(BUILDERS = {'Foo' : bld}) env.Foo('file') |
% scons
XXX
bld = Builder(action = 'XXX', suffix = '.foo', src_suffix = '.input', emitter = 'MY_EMITTER') def modify1(XXX): return XXX def modify2(XXX): return XXX env1 = Environment(BUILDERS = {'Foo' : bld}, MY_EMITTER = modify1) env2 = Environment(BUILDERS = {'Foo' : bld}, MY_EMITTER = modify2) env1.Foo('file1') env2.Foo('file2') |
<<< Previous | Home | Next >>> |
Builders That Create Actions Using a Generator | Up | Builders That Use Other Builders |