Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-03 09:33:04


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'.

But probably we should add 'lib' automatically on Unix if no <tag> is
specified?

> libfoobar.dylib on Mac OSX

Is this the right suffix for OSX? I think small tweak to tools/type/lib.jam
should do the trick.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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