[Scons-users] Extracting "-I" paths in a complex tree

Gary Oberbrunner garyo at oberbrunner.com
Fri Jan 17 10:27:28 EST 2014


On Fri, Jan 17, 2014 at 9:46 AM,
<andreas.ames at de.transport.bombardier.com> wrote:

>> Maybe start by instrumenting the C scanner which is in

>> SCons/engine/SCons/Scanner/__init__.py to make it print out what you

>> need. If that works to your satisfaction, you could subclass the

>

> I've got a related question. Does anyone know of a C/C++ SCons scanner

> implementation based on gcc's '-H' output (Microsoft has a similar command

> line option for their C/C++ compiler, printing all include files to

> stdout/stderr)?

>

> I would really appreciate something like that because it would provide the

> most accurate information about implicit dependencies.


I agree, that would be perfect. I don't know of any such implementation though.

That said, Scanners are more-or-less pluggable, so if you wrote one
you could pretty easily plug it in.

--
Gary


More information about the Scons-users mailing list