Boost logo

Boost-Build :

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]>

> 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<http://lists.boost.org/mailman/listinfo.cgi/boost-build>
>

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