Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2003-12-18 04:53:57


Hi Volodya,

> > One minor change: the attached patch allows you to filter the types
without
> > specifying <traverse-dependencies>on.
>
> Could you resent this patch as unified diff? I'm sorry that I sound that
> picky, but I really don't know now to understand the diff format you've
used
> -- and it did not apply automatically.

Sorry. New one attached (note that this is done against the m10_dev2
version).

Proposed log message: Allow <include-type> to select staged targets, even
with
<traverse-dependencies>off.

Pedro

 ------=_NextPart_000_0019_01C3C54C.DA8288C0 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 -u -r1.4 stage.jam
--- tools/stage.jam 15 Dec 2003 17:46:02 -0000 1.4
+++ tools/stage.jam 18 Dec 2003 09:49:53 -0000
@@ -93,6 +93,8 @@
$(self.project) ] ;
}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
+ local include-types =3D [ $(property-set).get <include-type> ] ;
+=20=20=20=20=20=20=20=20
local result ;
for local i in $(source-targets)
{
@@ -140,9 +142,16 @@
# FIXME: Since we can have <location> property, it might be be=
tter
# to use it to distinguish staged copies with different locati=
ons.
for t in $(i2)
- {=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
+ {
+ 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
+ {
+ $(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=20=20=20=20=20=20=20=20=20=20=20
=20
}
 ------=_NextPart_000_0019_01C3C54C.DA8288C0--


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