Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54892 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2009-07-11 10:43:12


Author: vladimir_prus
Date: 2009-07-11 10:43:12 EDT (Sat, 11 Jul 2009)
New Revision: 54892
URL: http://svn.boost.org/trac/boost/changeset/54892

Log:
Add supposed for hashed target paths.

Text files modified:
   trunk/tools/build/v2/build/property-set.jam | 23 +++++++++++++++++++++--
   1 files changed, 21 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/build/property-set.jam
==============================================================================
--- trunk/tools/build/v2/build/property-set.jam (original)
+++ trunk/tools/build/v2/build/property-set.jam 2009-07-11 10:43:12 EDT (Sat, 11 Jul 2009)
@@ -10,7 +10,7 @@
 import property ;
 import sequence ;
 import set ;
-
+import option ;
 
 # Class for storing a set of properties.
 #
@@ -37,7 +37,7 @@
     import property ;
     import property-set ;
     import set ;
-
+
     rule __init__ ( raw-properties * )
     {
         self.raw = $(raw-properties) ;
@@ -262,6 +262,8 @@
             else
             {
                 local p = [ as-path ] ;
+ p = [ property-set.hash-maybe $(p) ] ;
+
                 # A real ugly hack. Boost regression test system requires
                 # specific target paths, and it seems that changing it to handle
                 # other directory layout is really hard. For that reason, we
@@ -460,3 +462,20 @@
     }
     return $(.empty) ;
 }
+
+if [ option.get hash : : yes ] = yes
+{
+ rule hash-maybe ( path )
+ {
+ path ?= "" ;
+ return [ MD5 $(path) ] ;
+ }
+}
+else
+{
+ rule hash-maybe ( path )
+ {
+ return $(path) ;
+ }
+}
+


Boost-Commit 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