[Scons-users] Custom builder

Dirk Bächle tshortik at gmx.de
Fri Jun 6 11:08:27 EDT 2014


Hi Roman,

On 06.06.2014 15:35, Roman Karlstetter wrote:
> Hi all,
>
> I have to create a special builder that does the following three things:
>   1. generate some code and other files from a definition-file -> generated.c, generated.asm; generated.cmd
>   2. compile the generated code + some additional source files (cpp, c and asm) -> obj-files
>   3. links the obj-files, the generated.cmd and some other user.cmd files.
>
> Any idea how a builder which does that would look like? I want to be able to pass all the non-generated files (definition, cpp, c, asm) into my builder and let it detect what to do with which files. One problem that I'm facing is that I can't make scons to include the generated files for object creation and therefore the linking step.
>
> I haven't found an easy way on how to do this... any ideas?

sounds like a pseudo-Builder would be the perfect fit for your needs. 
Did you already have a look at http://www.scons.org/wiki/ToolsForFools ?

Best regards,

Dirk



More information about the Scons-users mailing list