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

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: Rebased to master Created 6 years, 10 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
« no previous file with comments | « build/common.gypi ('k') | src/shared/gio/gio.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
# 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)
« no previous file with comments | « build/common.gypi ('k') | src/shared/gio/gio.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698