Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2005-05-03 09:56:07


Vladimir Prus wrote:

> Hi Craig,
>
> > lib libfoobar : $(SRC) ;
> ...
> > Now, on a Linux platform, the resulting output will be:
> > libfoobar.so
> >
> > On Windows, this will be:
> > libfoobar.dll
> >
> >
> > I don't want this, I want the output of this to be:
> > libfoobar.so on Linux
> > foobar.dll on Windows
>
> You can write:
>
> lib foobar : $(SRC) ;
>
> and then use the 'tag' feature to decorate the name to your liking.
> Take a
> look at tests/tag.py. 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".

> 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 "libfoobar.so" &"foobar.dll" for
release and "libfoobar_d.so" & "foobar_d.dll" for debug, for example.

Phillip

 


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