$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Matthew Herrmann (matthew.herrmann_at_[hidden])
Date: 2007-06-28 19:05:32
boost-build-request_at_[hidden] 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