| Index: pylib/gyp/generator/scons.py
|
| ===================================================================
|
| --- pylib/gyp/generator/scons.py (revision 428)
|
| +++ pylib/gyp/generator/scons.py (working copy)
|
| @@ -364,7 +364,12 @@
|
| 'message' : message,
|
| })
|
| if rule.get('process_outputs_as_sources'):
|
| - fp.write(' input_files.Replace(%s_file, _outputs)\n' % name)
|
| + # Remove header files so we don't add them to inputs and try to link them.
|
| + fp.write(' linkable_files = [f for f in _outputs if not str(f).endswith(\'.h\')]\n')
|
| + fp.write(' input_files.Replace(%s_file, linkable_files)\n' % name)
|
| + else:
|
| + # Remove the source file e.g. the gperf file to avoid trying to link it.
|
| + fp.write(' input_files.Remove(%s_file)\n' % name)
|
| fp.write('prerequisites.extend(_outputs)\n')
|
|
|
| SConsTypeWriter[spec.get('type')](fp, spec)
|
|
|