Boost logo

Boost-Build :

Subject: Re: [Boost-build] Generating multiple CPP/H targets from a single source
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-08-04 15:07:32

Tyson Marchuk wrote:

> Well it turns out that it's only 'mostly working'. There is a problem
> where if files in the project include the generated H files then doing a
> build with a high number of jobs (-j10 for example) won't wait for my
> generator to finish before processing and the file won't exist when it
> comes time to compile the other source (CPP) files. The weird thing is
> that if I touch the source IDL, XML, etc. file then it will rebuild
> these files so it seems to know about the dependency but won't force a
> wait on completion of the first 6 targets before continuing on.
> To clarify I have a file of type MYGEN which makes 3 CPP and 3 H files.
> These 3 H files are included in other, normal, CPP files. If I update
> the MYGEN file the normal CPP files get rebuilt as a result of the H
> files getting rebuilt but if I do bjam --clean and then bjam -j10 it
> will attempt to build the normal CPP files without waiting to generate
> the dependencies from the MYGEN file.
> Does anyone have any advice on how to modify the generator so that it's
> guaranteed to finish before things that include the output targets are
> built? I've been playing around a bit with DEPENDS and INCLUDES rules
> without any luck.

Are you sure you set <implicit-dependency> properties on other targets?
See 'generated files' section in the docs.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at