[Scons-dev] scanning before emitting

Schleimer, Ben bensch128 at yahoo.com
Mon May 9 14:25:11 EDT 2016


Hi,   I was working with another developer on the protoc tool (located at https://github.com/TheOstrichIO/sconseries/blob/master/site_scons/site_tools/protoc.py) and the question of scanning for recursive protobuf "import" statements came up.
The issue is whether SCons naturally supports recursive scanning before emitting. From my tests, I found that the scanner always runs after the emitter and is only used to check if the dependency needs to be rebuilt or not.
I hacked around this issue by recursively calling the scanner inside the emitter but I am wondering if this is the best way to solve this problem. (I can share my modified code if you want)
Thanks!Ben
PS. the 'recursive' argument in Scanner() doesn't seem to help :-(



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160509/17a8d1e3/attachment.html>


More information about the Scons-dev mailing list