Boost logo

Boost-Build :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2008-01-04 18:59:20


Hi Jaroslav,

On Jan 4, 2008, at 4:38 PM, Jaroslav Gresula wrote:

> is there a way a .jam file can find out its path?

I wrote a small utility to do this, but it's not currently in the
trunk. I've attempted to extract enough of it here to get you
working. Here's what you do:

(1) In the Jamfile whose path you want to know, create a local
variable and call the path-relative-to rule.

local path-to-jamfile = [ path-relative-to ] ;

This will return the path to this Jamfile from the Jamroot (that's
why it's a relative path).

Next you need to add the code in the attached file to boost/tools/
build/v2/build/project.jam around line 930 or so.

Hope that helps.

-- Noel




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