|
Boost-Build : |
From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-18 03:02:54
Janssen, Olaf IT/HZA-TBE wrote:
>> 2. I need to add a C++ file which contains an empty DllMain function:
>
> I didn't do that in our resource only DLLs, e.g.
>
> lib German : German.rc
> : <toolset>msvc
> <linkflags>/machine:I386
> <linkflags>/noentry
> : debug release
> ;
I have started doing something similar, but I now have a <resource-only>
feature (see my original post).
> 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).
- Reece
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