Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50024 - trunk/libs/units/test_headers
From: steven_at_[hidden]
Date: 2008-11-29 14:00:03


Author: steven_watanabe
Date: 2008-11-29 14:00:03 EST (Sat, 29 Nov 2008)
New Revision: 50024
URL: http://svn.boost.org/trac/boost/changeset/50024

Log:
include headers in the second translation unit in the opposite order from the first
Text files modified:
   trunk/libs/units/test_headers/Jamfile.v2 | 11 ++++++++++-
   1 files changed, 10 insertions(+), 1 deletions(-)

Modified: trunk/libs/units/test_headers/Jamfile.v2
==============================================================================
--- trunk/libs/units/test_headers/Jamfile.v2 (original)
+++ trunk/libs/units/test_headers/Jamfile.v2 2008-11-29 14:00:03 EST (Sat, 29 Nov 2008)
@@ -11,6 +11,8 @@
 import path ;
 import regex ;
 import print ;
+import sequence ;
+import feature ;
 
 project boost/units/test_headers :
     requirements <include>$(BOOST_ROOT) <include>../../..
@@ -28,10 +30,17 @@
         [ regex.replace [ path.relative-to ../../.. $(file) ] "/" "_" ] ;
 }
 
+feature.feature <generate-include-all-order> : forward reverse : incidental ;
+
 rule generate-include-all ( target : sources * : properties * )
 {
     print.output $(target) ;
 
+ if <generate-include-all-order>reverse in $(properties)
+ {
+ sources = [ sequence.reverse $(sources) ] ;
+ }
+
     for local file in $(sources)
     {
         print.text "#include <$(file:G=)>
@@ -41,7 +50,7 @@
 }
 
 make include_all1.cpp : $(headers) : @generate-include-all ;
-make include_all2.cpp : $(headers) : @generate-include-all ;
+make include_all2.cpp : $(headers) : @generate-include-all : <generate-include-all-order>reverse ;
 
 # this ought to catch non-inlined functions and other duplicate definitions
 link include_all1.cpp include_all2.cpp main.cpp : <include>. : include_all_headers ;


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