Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-15 05:53:54

Vladimir Prus <ghost_at_[hidden]> writes:

> Rene Rivera wrote:
>> 2. Do we have anything in the design of BBV2 to handle such a platform
>> requirement?
> I need to understand how this should be handled, first. There's a rule/action
> pair I think version numbers should be handled by them?
> So, you'd have
> toolset.flags gcc VERSION_NUMBER : version-number ;
> and
> actions
> {
> <ordinary-stuff>
> ln -s $(<) $(<).$(VERSION_NUMBER)
> }
> The last line should be tweaked to expand to nothing with VERSION_NUMBER
> is empty, but you get the idea. Then, on all platforms but OpenBSD,
> the default value of VERSION_NUMBER will be "", and on OpenBSD it will be
> "0.0". Will that work?

Just a small meta-comment: let's be sure to keep in mind that this is
a platform requirement, not a (direct) toolset requirement, so ideally
we'll find a way to encode this stuff in the platform. That is to
say, (for example) the constructor for library target objects should
automatically handle adding version numbers to the target filename.

David Abrahams
dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at