Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2007-10-07 05:31:06


Author: vladimir_prus
Date: 2007-10-07 05:31:06 EDT (Sun, 07 Oct 2007)
New Revision: 39754
URL: http://svn.boost.org/trac/boost/changeset/39754

Log:
Directly use the 'DEPENDS' rule to set dependencies.

Text files modified:
   branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/pybb.jam | 7 +++++++
   branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/engine/bjam.py | 2 +-
   2 files changed, 8 insertions(+), 1 deletions(-)

Modified: branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/pybb.jam
==============================================================================
--- branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/pybb.jam (original)
+++ branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/pybb.jam 2007-10-07 05:31:06 EDT (Sun, 07 Oct 2007)
@@ -36,6 +36,13 @@
         $(action) $(targets) : $(sources) ;
     }
     
+ rule set-target-variable ( targets + : variable : value * )
+ {
+ ECHO "$(variable) on $(targets) = $(value)" ;
+
+ $(variable) on $(targets) = $(value) ;
+ }
+
     rule MkDir
     {
         # If dir exists, don't update it

Modified: branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/engine/bjam.py
==============================================================================
--- branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/engine/bjam.py (original)
+++ branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/engine/bjam.py 2007-10-07 05:31:06 EDT (Sun, 07 Oct 2007)
@@ -19,5 +19,5 @@
         bjam_interface.call("set-target-variable", target, variable, value)
     
     def do_add_dependency (self, target, source):
- bjam_interface.call("add-dependency", target, source)
+ bjam_interface.call("DEPENDS", target, source)
         


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