Boost logo

Boost :

From: Andrey Melnikov (melnikov_at_[hidden])
Date: 2005-07-09 20:22:14


I had to add a dirty hack to stage.jam in order to get "lib" prefix
which is used to distinguish between static and import libraries on
Windows.

I modified virtual-target.add-prefix-and-suffix the following way.
Is it ok?

Andrey

rule add-prefix-and-suffix ( specified-name : type ? : property-set )
{
     local suffix = [ type.generated-target-suffix $(type) :
$(property-set) ] ;
     suffix = .$(suffix) ;

     local prefix ;

     if [ type.is-derived $(type) LIB ]
        && ! [ MATCH ^(lib) : $(specified-name) ]
     {
        if [ os.on-unix ]
         {
             prefix = "lib" ;
         }
        else
         {
             if [ os.on-windows ] && [ $(property-set).get <link> ] =
"static"
             {
                 prefix = "lib" ;
             }
         }

     }

     return $(prefix:E="")$(specified-name)$(suffix:E="") ;
}


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