|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-11-23 10:38:49
On Friday 18 November 2005 11:02, Reece Dunn wrote:
> > but the response file logic somehow choked on the missing import
> > libraries (*.lib). It tries to recreate the resource only DLL every time
> > because of the missing import library, but fails to create the necessary
> > response file when the resource DLL is up-to-date. I resorted to delete
> > the resource DLLs before building the project. Can this be improved
> > also?
>
> It's not the response file logic -- it is the DLL generator:
>
> generators.register-linker msvc.link.dll
>
> : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB
> : SHARED_LIB IMPORT_LIB
> : <toolset>msvc ;
>
> The issue is that the second IMPORT_LIB (the target) is not being
> generated in this instance. This is related to Alexey Pakhunov's MIDL
> support - i.e. wanting to have optional targets (who's absence doesn't
> cause a rebuild).
See my post with subject "Optional targets" that describes the issue in more
detail. For this specific case, you can add extra generator:
generators.register-linker msvc.link.resouce-dll
: OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB
: SHARED_LIB
: <toolset>msvc <resource-only>yes ;
and then add
generators.override msvc.link.resource-dll : msvc.link.dll ;
Then, with <resource-only>yes, only the second generator will be used.
- Volodya
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