Boost logo

Boost :

Subject: Re: [boost] [locale] Review results for Boost.Locale library
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2011-05-01 07:38:17


Mathias Gaunard wrote:

> On 01/05/2011 09:32, Vladimir Prus wrote:
>
>> Well, it would be trivial to implement syntax like:
>>
>> utf8cpp file : file.cpp ;
>> exe whatever : whatever.cpp file ;
>>
>> If that's what you're asking for. In fact, here's a complete example
>> that should almost work, in any Jamfile:
>>
>> import type ;
>> type.register UTF8CPP : : CPP ;
>>
>> import generators ;
>> generators.register-standard $(__name__).add-bom : CPP : UTF8CPP ;
>>
>> actions add-bom
>> {
>> add-bom $(>) -o $(<)
>> }
>>
>> utf8cpp file : file.cpp ;
>> exe whatever : whatever.cpp file ;
>>
>> I say "almost" because somebody who is actually interested in all this should
>> write the 'add-bom' utility, test everything, and do various other boring
>> things, like sending a patch and/or checking in.
>>
>> I think the ball is now in your court.
>
> I'm not sure that's necessary, but what if I wanted to do that with
> header files as well, without having to list them all?

It would require:

- Using globbing to specify the headers
- Using a slightly more contrived code to define 'utf8hpp' that can process
multile sources.
- Instead of adding 'file' to sources as in above, referring to it using
the 'implicit-dependency' build property, so that the include path is set
up to pick the processed headers.

-- 
Vladimir Prus
Mentor Graphics
+7 (812) 677-68-40

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk