Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-06-28 03:32:49


Matthew Herrmann wrote:

> Hi All,
>
> I'd like to extract the name of the current project from a rule. I
> currently can do it from with a rule defined in the same Jamfile, as
> follows:
.....
> This works if I embed it in the Jamfile itself, but when I place it in a
> separate utility.jam file, it fails, because $(__name__) returns
> "utility", not "Jamfile</home/matth/work/src/zjam.0.0/accounting>".

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.

HTH,
Volodya


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