[Scons-users] Scons using config.h.in

dev at mgautier.fr dev at mgautier.fr
Tue Apr 2 07:53:13 EDT 2013



> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130402/3051c5be/attachment.html>


More information about the Scons-users mailing list