[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: Re: [Boost-build] how to get current project name
From: Matthew Herrmann <matthew.herrmann () zomojo ! com>
Date: 2007-06-28 23:05:32
Message-ID: 46843EBC.3010601 () zomojo ! com
[Download RAW message or body]
boost-build-request@lists.boost.org wrote:
> Please see the project.current rule.
> It retains the same value from the moment Jamfile starts loading
> till the moment when such loading is done.
>
Thank you Volodya, this worked a treat. Here is the code for anyone curious:
rule get-current-project-name ( )
{
import project ;
local current = [ project.current ] ;
local currentid = [ $(current).name ] ;
local attributes = [ project.attributes $(currentid) ] ;
local suffix;
suffix = [ $(attributes).get id ] ;
return $(suffix:B) ;
}
Regards,
Matthew
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic