Subject: Re: [Boost-build] Newbie question: how to change import library name (windows)
From: Juan Carlos Franzoy (jfranzoy_at_[hidden])
Date: 2012-09-11 09:48:23
It worked. Thanks, I'd forgotten IMPORT_LIB case.
2012/9/10 Jurko GospodnetiÄ <jurko.gospodnetic_at_[hidden]>
> 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
> 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/**
-- Juan Carlos Franzoy Licenciado en Sistemas
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