Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2008-01-14 20:59:20


Author: grafik
Date: 2008-01-14 20:59:19 EST (Mon, 14 Jan 2008)
New Revision: 42785
URL: http://svn.boost.org/trac/boost/changeset/42785

Log:
It can be that an extension is initialized outside of a project, for example in a user-config.jam. In that case we need to create a standalone project.
Text files modified:
   sandbox/tools/build_extensions/ext/extension.jam | 7 ++++++-
   1 files changed, 6 insertions(+), 1 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-01-14 20:59:19 EST (Mon, 14 Jan 2008)
@@ -51,8 +51,13 @@
         
         # Create the project data, and bring in the project rules
         # into the module.
+ local ext-path = [ project.attribute $(root-project) location ] ;
+ if $(ext-path)
+ {
+ ext-path = [ path.join [ project.attribute $(root-project) location ] ext $(ext:L) ] ;
+ }
         project.initialize $(__name__) :
- [ path.join [ project.attribute $(root-project) location ] ext $(ext:L) ] ;
+ $(ext-path) ;
         
         # Create the project itself, i.e. the attributes.
         # All extensions are created in the "/ext" project space.


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