Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-01-04 11:31:10


On 2002-01-04 at 06:30 PM, ghost_at_[hidden] (Vladimir Prus) wrote:

>Toon Knapen wrote:
>
>> >>Extreme suggestion here :-) The following would be cool to have:
>> >>
>> >>project.source <location>src <pattern>*.c ;
>> >>
>> >># builds all the "c" files in the "src" directory.
>> >>exe foobar : * ;
>> >
>> > Not so extreme. I think Toon wanted to do something similar, but I think
>> > this makes more sense:
>> >
>> > 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?

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]

 


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