[Scons-users] Depending on a file argument to the compiler
Gary Oberbrunner
garyo at oberbrunner.com
Sat Nov 1 07:08:25 EDT 2014
On Fri, Oct 31, 2014 at 11:16 PM, William Blevins <wblevins001 at gmail.com> wrote:
> +1 for Bill's answer
>
> If you need to do this operation all over the place, then an emitter wrapper
> makes the most sense.
Yeah, another +1. In some cases (but not here), a builder wrapper is
easier since you can just call Depends() in it, and then call your
wrapper instead of the original builder. But since the builder you're
wrapping is Object (and/or SharedObject), and that is used implicitly
by Program, Lib, SharedLib etc., a builder wrapper won't work in your
case.
--
Gary
More information about the Scons-users
mailing list