Index: site_scons/site_tools/component_builders.py |
diff --git a/site_scons/site_tools/component_builders.py b/site_scons/site_tools/component_builders.py |
index 8d337ceaa024edbae95144d2bf70c876deccad57..9e168bf5d1d5f2bbc814e1f18ca82aacdac71c9f 100755 |
--- a/site_scons/site_tools/component_builders.py |
+++ b/site_scons/site_tools/component_builders.py |
@@ -499,8 +499,7 @@ def ComponentProgram(self, prog_name, *args, **kwargs): |
# Add an alias to build the program to the right groups |
a = env.Alias(prog_name, out_nodes) |
- for group in env['COMPONENT_PROGRAM_GROUPS']: |
- SCons.Script.Alias(group, a) |
+ env.ComponentProgramAlias(a) |
Mark Seaborn
2014/02/03 22:31:47
Can you explain these changes in the commit messag
|
# Store list of components for this program |
env._StoreComponents(prog_name) |
@@ -514,6 +513,10 @@ def ComponentProgram(self, prog_name, *args, **kwargs): |
# Return the executable |
return out_nodes[0] |
+def ComponentProgramAlias(self, program): |
+ for group in self['COMPONENT_PROGRAM_GROUPS']: |
+ SCons.Script.Alias(group, program) |
+ |
#------------------------------------------------------------------------------ |
@@ -639,6 +642,7 @@ def generate(env): |
env.AddMethod(ComponentObject) |
env.AddMethod(ComponentLibrary) |
env.AddMethod(ComponentProgram) |
+ env.AddMethod(ComponentProgramAlias) |
env.AddMethod(ComponentTestProgram) |
env.AddMethod(ComponentTestOutput) |