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

Side by Side Diff: site_scons/site_tools/component_setup.py

Issue 12594036: Add a scons pnacl finalize step for pnacl_generate_pexe tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Use StripSuffix Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « buildbot/buildbot_pnacl_toolchain_tests.sh ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Main setup for software construction toolkit. 6 """Main setup for software construction toolkit.
7 7
8 This module is a SCons tool which should be include in all environments. 8 This module is a SCons tool which should be include in all environments.
9 It is used as follows: 9 It is used as follows:
10 env = Environment(tools = ['component_setup']) 10 env = Environment(tools = ['component_setup'])
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 RANLIBCOMSTR='________Indexing $TARGET', 200 RANLIBCOMSTR='________Indexing $TARGET',
201 RCCOMSTR='________Compiling resource $TARGET', 201 RCCOMSTR='________Compiling resource $TARGET',
202 SHCCCOMSTR='________Compiling $TARGET', 202 SHCCCOMSTR='________Compiling $TARGET',
203 SHCXXCOMSTR='________Compiling $TARGET', 203 SHCXXCOMSTR='________Compiling $TARGET',
204 SHLINKCOMSTR='________Linking $TARGET', 204 SHLINKCOMSTR='________Linking $TARGET',
205 SHMANIFEST_COMSTR='________Updating manifest for $TARGET', 205 SHMANIFEST_COMSTR='________Updating manifest for $TARGET',
206 # Strip doesn't seem to be a first-class citizen in SCons country, 206 # Strip doesn't seem to be a first-class citizen in SCons country,
207 # so we have to add these *COM, *COMSTR manually. 207 # so we have to add these *COM, *COMSTR manually.
208 STRIPCOMSTR='________Stripping to create $TARGET', 208 STRIPCOMSTR='________Stripping to create $TARGET',
209 TRANSLATECOMSTR='________Translating $TARGET', 209 TRANSLATECOMSTR='________Translating $TARGET',
210 PNACLFINALIZECOMSTR='________Finalizing pexe $TARGET',
210 ) 211 )
211 212
212 # Add other default tools from our toolkit 213 # Add other default tools from our toolkit
213 # TODO: Currently this needs to be before SOURCE_ROOT in case a tool needs to 214 # TODO: Currently this needs to be before SOURCE_ROOT in case a tool needs to
214 # redefine it. Need a better way to handle order-dependency in tool setup. 215 # redefine it. Need a better way to handle order-dependency in tool setup.
215 for t in component_setup_tools: 216 for t in component_setup_tools:
216 env.Tool(t) 217 env.Tool(t)
217 218
218 # The following environment replacements use env.Dir() to force immediate 219 # The following environment replacements use env.Dir() to force immediate
219 # evaluation/substitution of SCons variables. They can't be part of the 220 # evaluation/substitution of SCons variables. They can't be part of the
(...skipping 15 matching lines...) Expand all
235 # have a common location for tools outside of the current clientspec. Need 236 # have a common location for tools outside of the current clientspec. Need
236 # to check if it's defined already, so it can be set prior to this tool 237 # to check if it's defined already, so it can be set prior to this tool
237 # being included. 238 # being included.
238 tool_root = env.get('TOOL_ROOT', '$SOURCE_ROOT') 239 tool_root = env.get('TOOL_ROOT', '$SOURCE_ROOT')
239 env['TOOL_ROOT'] = env.Dir(tool_root).abspath 240 env['TOOL_ROOT'] = env.Dir(tool_root).abspath
240 241
241 # Defer pre-evaluating some environment variables, but do before building 242 # Defer pre-evaluating some environment variables, but do before building
242 # SConscripts. 243 # SConscripts.
243 env.Defer(PreEvaluateVariables) 244 env.Defer(PreEvaluateVariables)
244 env.Defer('BuildEnvironmentSConscripts', after=PreEvaluateVariables) 245 env.Defer('BuildEnvironmentSConscripts', after=PreEvaluateVariables)
OLDNEW
« no previous file with comments | « buildbot/buildbot_pnacl_toolchain_tests.sh ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698