Boost logo

Boost-Build :

From: Noel Belcourt (kbelco_at_[hidden])
Date: 2006-03-18 13:07:58


On Mar 18, 2006, at 10:54 AM, Rene Rivera wrote:

> Noel Belcourt wrote:
>> Hi,
>>
>> We've got a couple of source directories that we depend on but cannot
>> otherwise modify. Our problem is that there are ~500 source files in
>> this directory and I want to glob all the files but one. Is there
>> some
>> notation to allow me to exclude one or more files from a glob? I'd
>> really hate to have to enumerate each source file in the Jamfile.
>
> Assuming BBv2 for this example... Something like this should work:
>
> import set ;
> import path ;
>
> local files =
> [ set.difference
> [ path.glob /path/ : *.cpp ] : [ path.glob /path/ : special.cpp ]
> ] ;

Brilliant, works like a champ.

Thanks Rene!


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