Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-08-09 03:33:07


   Hi Ray.

> Does anyone know of a rule or technique that allows one to force another
> project to build as a prerequisite to (and independent of) the current
> project?
>
> Basically what I need is something like build-project but which will
> force the named project to be built *before* the project in the current
> Jamfile (and independent of it).
>
> The particular use case here is that I need to build some tools and
> generate some files that my main project depends on. BB dependencies
> don't suffice because the generated files might need to be updated due
> to external conditions. I have tools that provide this logic but I need
> to build those tools and then invoke them (from the main project's
> Jamfile) before the dependency graph is built for the main project.

   If there is a dependency between your 'tool target' and the 'final
target' built using that tool then Boost Build will first build the
'tool targets' and so you'll have it available when building the 'final
target'.

   Have you tried adding an explicit dependency between these targets?

   As for 'files modified by external conditions', I believe Boost Build
assumes it knows about all dependencies between targets. To give it that
have you tries modeling your tools using Boost Build target or generator?

   Hope this helps.

   Best regards,
     Jurko Gospodnetić


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk