Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-01-04 11:37:26


Rene Rivera wrote:

> >> > project my-project : <source-location>src ;
> >> > exe foobar : *.c ;
> >>
> >> correct. I would like to see this a lot !
> >
> >The simplest question here is how the new builtin rules should be called.
> >I think that "GLOB". It it reasonable to make it take a wildcard,
> > interpret it relatively to the current directory, and return all the
> > matches? The other option is to take a target name, and then match
> > filenames in the directory given via "LOCATE". I don't think this latter
> > option gives us anything, and that the former should be taken. Other
> > comments?
>
> Yes, a "GLOB" rule seems like the way to do it. But now another question is
> what should happen when there are no matches? Return null/empty? Or return
> the pattern itself, as SEARCH would do?

Good question. Shell can behave both ways, but that's not relevant. I would
prefer if nothing is returned, simply because it's more logical. But a lot of
other question appear:
Should all source name be globbed? If yes, then we'll just override SEARCH
logic for sources. If not, how will we decide which ones are globbed? Via
some special grist:

exe foobar : <wc>*.c ;

or using a heuristic?

- 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