Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: site_scons/site_tools/component_builders.py

Issue 140653005: Adds tls_edit utility which patches irt_core.nexe's TLS usage. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fixed spacing issues in build/common.gypi Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698