Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-04 01:25:26

On Tuesday 03 May 2005 18:56, Phillip Seaver wrote:

> > You can write:
> >
> > lib foobar : $(SRC) ;
> >
> > and then use the 'tag' feature to decorate the name to your liking.
> > Take a
> > look at tests/ It has a big Jamfile block at the beginning
> > which can
> > serve as example. You can also look at tools/stage.jam, rule 'rename'.
> Unless I'm mistaken, <tag> appends to the base name, and we would want
> to prepend "lib".

Yes, that's if you use the first (historically) form:


The newer form is


The 'some_rule' is passed name of target, type and properties and returns the
name that should really be used. It can add both prefix and suffix.

> > But probably we should add 'lib' automatically on Unix if no <tag> is
> > specified?
> Actually, I think it should prepend "lib" on Unix whether or not a <tag>
> is specified. You may want it to be "" &"foobar.dll" for
> release and "" & "foobar_d.dll" for debug, for example.

So, you suggest that "lib" is prepended unconditionally, even if any form of
<tag> is present? I think that at least for <tag>@some_rule, user should have
full control over the generated name.

- Volodya

Vladimir Prus
Boost.Build V2:

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