[Cook] Large builds

Pendergraft, Jerry JPendergraft at sjm.com
Fri Jul 6 11:31:18 EST 2007



> -----Original Message-----
> From: cook-users-bounces+jpendergraft=sjm.com at auug.org.au on behalf of kristof at provost-engineering.be
> Sent: Mon 02-Jul-07 04:31
> To: cook-users at auug.org.au
> Subject: [Cook] Large builds
 
> Hi,

> (1) I'm going to a non-recursive system, so all directories will have a
> cook file which includes top.cook (at the top of the file) and
> bottom.cook (at the bottom). I'd like to assign the SRC variable from
> each of those files to a variable [module_path]_src (e.g.
> src/lib_0_src) automatically. I don't want to rely on anything defined
> in the directory cookfile. In GNU Make this can be done using the
> MAKEFILE_LIST variable, but I can't find anything like it in Cook.
Normally it is done the other way round, that is the top level cook file includes all the others. There are ways to organize such that you probably won't need such a variable but it can be done quite easily.

> (2) I'd like to rebuild files if the compile statement changes. Does
> cook have anything to make this easier than the GNU make approach? (Like
> this http://www.cmcrossroads.com/content/view/6528/120/ )
That would be form of what cook calls a "manifest" dependency. Most commonly used for source lists, but can be used for anything.

> (3) Does anyone have any samples of large build systems I could look at?
Does a system that manages 2000 source (c++) files in 22 sub-systems and builds around 200 binaries both optimized and non-optimized across multiple architectures all in parallel count?

> (4) I'd like to separate the build configuration (which
> features/module/source files to take along) from the build system.
> Can you recommend any tools, or can cook
> help me out too? As this is an embedded target I'm not interested in
Cook can help out here because you can easily reference architecture specific files if need be for your build - yet another organizational thing.

> Thanks,
> Kristof

Jerry Pendergraft                              voice:651-523-6935
St.Jude Medical                                mobil:651-491-0163
Atrial Fibrillation Division                email:jpendergraft at sjm.com
1350 Energy Lane
St.Paul, MN  55108




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20070705/e0329330/attachment.htm>


More information about the Cook-users mailing list