Boost logo

Boost-Build :

From: Daniel Schlyder (daniel_at_[hidden])
Date: 2005-10-11 00:22:43


Hi,

I have a directory containing a few .jam files with BBv2 extensions. What is
the simplest way to import them into eachother?

Currently, I use code like the following in file scope

import path ;
local bbext_root = [ path.parent $(__name__) ] ;
import $(bbext_root)/utility : is-directory ;

and the following in class scope

class iss-scanner : scanner
{
import path ;
local bt = [ BACKTRACE ] ;
local bbext_root = [ path.parent $(bt[1]) ] ;
import $(bbext_root)/glob : glob-recursively ;

Both these methods feel a bit hackish to me. Is there a simpler way?

Ideally, I would like to be able to write just

import $(__directory__)/foo ;

in both cases.

Thanks,

--
Daniel Schlyder
http://bitblaze.com/
 

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