| Index: site_scons/site_tools/concat_source.py
|
| ===================================================================
|
| --- site_scons/site_tools/concat_source.py (revision 4549)
|
| +++ site_scons/site_tools/concat_source.py (working copy)
|
| @@ -52,14 +52,7 @@
|
| output_lines = [
|
| '// This file is auto-generated by the ConcatSource builder.']
|
|
|
| - for source_file in source:
|
| - # Skip source files which are not CPP files. These will be passed through
|
| - # to the output list by the pseudo-builder.
|
| - if source_file.suffix not in env['CONCAT_SOURCE_SUFFIXES']:
|
| - continue
|
| -
|
| - source_path = str(source_file)
|
| -
|
| + for source_path in map(str, source):
|
| if env.get('CC') == 'cl':
|
| # Add message pragma for nicer progress indication when building with
|
| # MSVC.
|
| @@ -93,8 +86,9 @@
|
| # from other files (which we pass through).
|
| cppsource = []
|
| outputs = []
|
| - for source_file in SCons.Script.Flatten(source):
|
| - if self.File(source_file).suffix in self['CONCAT_SOURCE_SUFFIXES']:
|
| + suffixes = self.Flatten(self.subst_list('$CONCAT_SOURCE_SUFFIXES'))
|
| + for source_file in self.arg2nodes(source):
|
| + if source_file.suffix in suffixes:
|
| cppsource.append(source_file)
|
| else:
|
| outputs.append(source_file)
|
|
|