From: Matthew Herrmann (matthew.herrmann_at_[hidden])
Date: 2007-06-28 19:05:32
> 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) ] ;
suffix = [ $(attributes).get id ] ;
return $(suffix:B) ;
Boost-Build 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