From 2852cfab5e69bbda80d7b29c298a128f5e338e1c Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 15 Aug 2006 05:56:56 +0000 Subject: [PATCH] Add property to properties passed to name adjustment rules. [SVN r34885] --- v2/build/virtual-target.jam | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v2/build/virtual-target.jam b/v2/build/virtual-target.jam index 3c52b32d5..fb30279d5 100644 --- a/v2/build/virtual-target.jam +++ b/v2/build/virtual-target.jam @@ -402,6 +402,14 @@ class abstract-file-target : virtual-target ps = [ property-set.empty ] ; } + #~ We add ourselves to the properties so that any tag rule can get + #~ more direct information about the target than just that available + #~ through the properties. This is useful in implementing + #~ name changes based on the sources of the target. For example to + #~ make unique names of object files based on the source file. + #~ --grafik + ps = [ property-set.create [ $(ps).raw ] $(__name__) ] ; + local tag = [ $(ps).get ] ; if $(tag)