Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-02-17 15:21:45


Rene Rivera wrote:

> Jeff Holle wrote:
>
>
>>Rene,
>>
>>Please note that "That depend on which version of Boost.Build you are
>>referring to. BBv1 or BBv2?" is not really an answer to my question.
>>
>>Short of an informative answer to my question, I'd at least like to know
>>that:
>> A. The task is not, or is, possible with BBv1.
>> B. The task is possible with BBv2. Perhaps with advice of what doc
>>to read?
>
>
> Sorry I haven't responded earlier... You mentioned it was for BBv1 previously
> so I was intending on writing an example of how to do that. But haven't had
> time yet.
>
> To answer a bit more, doing source generation actions in BBv1 is harder than
> it is on BBv2.

PS.. The easiest way in BBv1 to implement this is to add a rule that does the
actions and targets etc...

rule pyste ( ... )
{
pyste-action $(<) : $(>)
}

For example. But there are many more details involved, like how to get the
correct target and source names so that they fit in the way BB builds things.
If you feel adventurous look at the "stage" rule in boost-base.jam it does
similar things to what one would want.

The harder way is to create a full generator for that type of file. But this
involves changes in more places to make it work.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
 

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