Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2003-12-17 13:23:16


Hi Volodya,

> Yea, I'd say that the first approach, with <lib-location> does not scale.
If
> new target types are added, you need new features.

Agreed.

(...)

> because 'stage' could not traverse dependencies back then. Nowdays, it
> probably can be expressed like:
>
> stage wi-bin : $(top-level-targets) :
> <location>bin <traverse-dependencies>on <include-types>EXE ;
>
> stage wi-lib : $(top-level-targets) :
> <location>lib <traverse-dependencies>on <include-types>LIB ;
>
> alias wi : wi-bin wi-lib ;
>
> I think this approach is somewhat simpler that what you propose.

You bet :-)

One minor change: the attached patch allows you to filter the types without
specifying <traverse-dependencies>on.

Thanks for your help,

Pedro

 ------=_NextPart_000_0237_01C3C4CA.D70039E0 Content-Type: text/plain;
name="patch.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="patch.txt"

Index: tools/stage.jam
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/cvs/Workspace/boost-build/tools/stage.jam,v
retrieving revision 1.4
diff -r1.4 stage.jam
95a96,97
> local include-types =3D [ $(property-set).get <include-type> ] ;
>=20=20=20=20=20=20=20=20=20
143,145c145,154
< {=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
< $(t).set-path $(location) ;
< result +=3D [ virtual-target.register $(t) ] ; =
=20=20=20=20=20

---
> {
> local ty =3D [ $(t).type ] ;=20=20=20=20=20=20=20=20
> if $(ty)
> {
> if [ include-type $(ty) : $(include-types) ] =
=20=20=20=20=20=20=20=20=20
> {
> $(t).set-path $(location) ;
> result +=3D [ virtual-target.register $(t) ] ; =
=20=20=20=20=20=20=20=20=20=20=20=20=20
> }=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
> }=20=20=20=20=20=20=20=20=20=20=20
 ------=_NextPart_000_0237_01C3C4CA.D70039E0-- 

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