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

Unified Diff: site_scons/site_tools/concat_source.py

Issue 13134: Pulling in hammer changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « site_scons/site_tools/component_targets_msvs.py ('k') | site_scons/site_tools/defer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site_scons/site_tools/concat_source.py
===================================================================
--- site_scons/site_tools/concat_source.py (revision 6345)
+++ site_scons/site_tools/concat_source.py (working copy)
@@ -110,17 +110,20 @@
"""SCons entry point for this tool."""
# Add the builder
- action = SCons.Script.Action(ConcatSourceBuilder,
+ action = SCons.Script.Action(ConcatSourceBuilder, '$CONCAT_SOURCE_COMSTR',
varlist = ['CONCAT_SOURCE_SUFFIXES'])
builder = SCons.Script.Builder(action = action, suffix = '$CXXFILESUFFIX')
env.Append(BUILDERS={'ConcatSourceBuilder': builder})
- # Suffixes of sources we can concatenate. Files not in this list will be
- # passed through untouched. (Note that on Mac, Objective C/C++ files
- # cannot be concatenated with regular C/C++ files.)
- # TODO(rspangler): Probably shouldn't mix C, C++ either...
- env['CONCAT_SOURCE_SUFFIXES'] = ['.c', '.C', '.cxx', '.cpp', '.c++', '.cc',
- '.h', '.H', '.hxx', '.hpp', '.hh']
+ env.SetDefault(
+ CONCAT_SOURCE_COMSTR = 'Creating ConcatSource $TARGET from $SOURCES',
+ # Suffixes of sources we can concatenate. Files not in this list will be
+ # passed through untouched. (Note that on Mac, Objective C/C++ files
+ # cannot be concatenated with regular C/C++ files.)
+ # TODO(rspangler): Probably shouldn't mix C, C++ either...
+ CONCAT_SOURCE_SUFFIXES = ['.c', '.C', '.cxx', '.cpp', '.c++', '.cc',
+ '.h', '.H', '.hxx', '.hpp', '.hh'],
+ )
# Add a psuedo-builder method which can look at the environment to determine
# whether to call the ConcatSource builder or not
« no previous file with comments | « site_scons/site_tools/component_targets_msvs.py ('k') | site_scons/site_tools/defer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698