Scons: Make some Action objects fit the abreviated output format.
This commit is contained in:
parent
1b49c56679
commit
1c68c32cc9
2 changed files with 3 additions and 7 deletions
|
@ -835,13 +835,8 @@ def build_config_file(target, source, env):
|
||||||
f.close()
|
f.close()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Generate the message to be printed when building the config file.
|
|
||||||
def build_config_file_string(target, source, env):
|
|
||||||
(variable, value) = [s.get_contents() for s in source]
|
|
||||||
return "Defining %s as %s in %s." % (variable, value, target[0])
|
|
||||||
|
|
||||||
# Combine the two functions into a scons Action object.
|
# Combine the two functions into a scons Action object.
|
||||||
config_action = Action(build_config_file, build_config_file_string)
|
config_action = MakeAction(build_config_file, Transform("CONFIG H", 2))
|
||||||
|
|
||||||
# The emitter munges the source & target node lists to reflect what
|
# The emitter munges the source & target node lists to reflect what
|
||||||
# we're really doing.
|
# we're really doing.
|
||||||
|
|
|
@ -86,7 +86,8 @@ def MakeIncludeAction(target, source, env):
|
||||||
|
|
||||||
def MakeInclude(source):
|
def MakeInclude(source):
|
||||||
target = generated_dir.File(basename(source))
|
target = generated_dir.File(basename(source))
|
||||||
env.Command(target, source, MakeIncludeAction)
|
include_action = MakeAction(MakeIncludeAction, Transform("MAKE INC", 1))
|
||||||
|
env.Command(target, source, include_action)
|
||||||
|
|
||||||
MakeInclude('slicc_interface/AbstractEntry.hh')
|
MakeInclude('slicc_interface/AbstractEntry.hh')
|
||||||
MakeInclude('slicc_interface/AbstractCacheEntry.hh')
|
MakeInclude('slicc_interface/AbstractCacheEntry.hh')
|
||||||
|
|
Loading…
Reference in a new issue