[Scons-users] Scons using config.h.in
Zachary Lund
admin at computerquip.com
Thu Apr 4 01:17:38 EDT 2013
On Tue, 2013-04-02 at 13:53 +0200, dev at mgautier.fr wrote:
> > Herm... good question :D
> >
> > I suppose ultimately, I'm having issues adding things like
> "#include"
> > statements (or anything that isn't directly support in Scons) in my
> > config header (i.e. outside of macros is the use of "typedef". If a
> > certain type doesn't exist, create an alternative). I suppose I
> could do
> > this using substfile like stated above... it just seems kinda round
> > about and sloppy.
> >
> > It's static content so I feel like substfile is overkill and/or
> overly
> > complicated for the task.
> >
>
>
> Hello,
>
> Does this (http://www.scons.org/wiki/GenerateConfig ) answer your
> problem ?
>
> We use it in our build system and it works pretty well.
>
> It should be possible for you to create a builder to automatically
> create config.h from config.h.in instead of explicitly call
> env.Command.
>
> Matthieu.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
Actually, looking around the wiki, I found this:
http://scons.org/wiki/GenericSubstBuilder
The function SubstHeader is exactly what I'm looking for. I'll try and
get that working. Thanks for all of the replies, it's been educational.
More information about the Scons-users
mailing list