[Scons-users] Custom builder

Roman Karlstetter Roman.Karlstetter at ifta.com
Fri Jun 6 09:35:14 EDT 2014


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?


Kind regards,
Roman




More information about the Scons-users mailing list