Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-05-11 09:04:56


Johannes Brunen wrote:

Hi Johannes,
sorry for late reply, there were some holidays here and then some work....

> I have found a hack solution to the globbing problem:

> I added to the file boost/tools/build/v2/build/project.jam the following
> code
>
> # This module defines rules common to all projects
> module project-rules
> {
> ....
> rule globex ( subdir wildcards + )
> {
> import path ;
> import project ;
>
> local location = [ project.attribute $(__name__) location ] ;
> local all-paths = [ path.glob $(location)/$(subdir) : $(wildcards)

What I think should be done is:

1. Make the 'glob' rule be relative to *source directory*, not project
location. So, in your case, simple

[ glob *.cpp ] ;

will work.

2. Fix 'glob' so that it supports directories in patterns. I think I can do
it.

How does the plan looks?

- 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