Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2008-05-10 18:59:37


Author: grafik
Date: 2008-05-10 18:59:37 EDT (Sat, 10 May 2008)
New Revision: 45269
URL: http://svn.boost.org/trac/boost/changeset/45269

Log:
Allow some customization of the extension option features.
Text files modified:
   sandbox/tools/build_extensions/ext/extension.jam | 9 ++++++---
   1 files changed, 6 insertions(+), 3 deletions(-)

Modified: sandbox/tools/build_extensions/ext/extension.jam
==============================================================================
--- sandbox/tools/build_extensions/ext/extension.jam (original)
+++ sandbox/tools/build_extensions/ext/extension.jam 2008-05-10 18:59:37 EDT (Sat, 10 May 2008)
@@ -8,6 +8,7 @@
 import project ;
 import path ;
 import modules ;
+import set ;
 
 feature.feature extension : : optional implicit ;
 
@@ -46,7 +47,7 @@
             root-project = [ project.attribute $(root-project) parent-module ] ;
         }
         
- # Add the extension to the know list.
+ # Add the extension to the known list.
         feature.extend extension : $(ext) ;
         
         # Create the project data, and bring in the project rules
@@ -102,10 +103,12 @@
     }
 }
 
-rule option ( extension name : values * )
+rule option ( extension name : values * : attributes * : attributes-to-remove * )
 {
     values ?= disable enable ;
- feature.feature $(extension)-$(name) : $(values) : propagated incidental optional ;
+ attributes ?= propagated incidental optional ;
+ attributes = [ set.difference $(attributes) : $(attributes-to-remove) ] ;
+ feature.feature $(extension)-$(name) : $(values) : $(attributes) ;
     .options.$(extension) += $(extension)-$(name) ;
 }
 


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