Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55711 - in trunk/tools/build/v2: . build
From: ghost_at_[hidden]
Date: 2009-08-22 04:04:34


Author: vladimir_prus
Date: 2009-08-22 04:04:31 EDT (Sat, 22 Aug 2009)
New Revision: 55711
URL: http://svn.boost.org/trac/boost/changeset/55711

Log:
New --dump-generators option to list all generators.

Text files modified:
   trunk/tools/build/v2/build-system.jam | 10 +++++++---
   trunk/tools/build/v2/build/generators.jam | 11 +++++++++++
   2 files changed, 18 insertions(+), 3 deletions(-)

Modified: trunk/tools/build/v2/build-system.jam
==============================================================================
--- trunk/tools/build/v2/build-system.jam (original)
+++ trunk/tools/build/v2/build-system.jam 2009-08-22 04:04:31 EDT (Sat, 22 Aug 2009)
@@ -25,7 +25,7 @@
 import utility ;
 import version ;
 import virtual-target ;
-
+import generators ;
 
 ################################################################################
 #
@@ -686,8 +686,12 @@
     {
         targets += [ project.target [ project.module-name "." ] ] ;
     }
-
-
+
+ if [ option.get dump-generators : : true ]
+ {
+ generators.dump ;
+ }
+
     # Now that we have a set of targets to build and a set of property sets to
     # build the targets with, we can start the main build process by using each
     # property set to generate virtual targets from all of our listed targets

Modified: trunk/tools/build/v2/build/generators.jam
==============================================================================
--- trunk/tools/build/v2/build/generators.jam (original)
+++ trunk/tools/build/v2/build/generators.jam 2009-08-22 04:04:31 EDT (Sat, 22 Aug 2009)
@@ -722,6 +722,8 @@
 #
 rule register ( g )
 {
+ .all-generators += $(g) ;
+
     # A generator can produce several targets of the same type. We want unique
     # occurrence of that generator in .generators.$(t) in that case, otherwise,
     # it will be tried twice and we will get a false ambiguity.
@@ -1393,3 +1395,12 @@
         }
     }
 }
+
+rule dump ( )
+{
+ for local g in $(.all-generators)
+ {
+ ECHO [ $(g).id ] ":" [ $(g).source-types ] -> [ $(g).target-types ] ;
+ }
+}
+


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