It worked. Thanks, I'd forgotten IMPORT_LIB case.

2012/9/10 Jurko Gospodnetić <jurko.gospodnetic@pke.hr>
  Hi.


I used <tag>@myrule to customize the library name, which was succesful,
except for the import library. The import library name remains the same
as the target name.
Does anybody know how to make boost.build change /IMPLIB linker flag for
mscv?

  I just played around with this for a sec and something like this seems to work as expected:

rule myrule ( name : type : properties )
{
    switch $(type)
    {
        case SHARED_LIB : return yyy.dll ;
        case IMPORT_LIB : return yyy.lib ;
    }
}


lib xxx : a.cpp : <tag>@myrule ;

  Tested using the msvc toolset and it creates a DLL named yyy.dll and its corresponding library names yyy.lib.

  Note that here the myrule rule gets called three times - once for the intermediate OBJ target, once for the SHARED_LIB target (i.e. the DLL), and once for the IMPORT_LIB target.

  Hope this helps.

  Best regards,
    Jurko Gospodnetić


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build



--
  Juan Carlos Franzoy
Licenciado en Sistemas