|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-04-05 10:19:38
Vladimir Prus wrote:
> On Wednesday 05 April 2006 09:36, Rene Rivera wrote:
>> Update of /cvsroot/boost/boost/tools/build/v2/tools
>> In directory
>> sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24090/tools/build/v2/tools
>>
>> Modified Files:
>> gcc.jam msvc.jam rc.jam
>> Log Message:
>> Add support for toolset specific resource compiler tool. Make gcc toolset
>> configure a resource compiler if available, and optionally can be user
>> configured. This allows the use of RC files with MinGW and CGYWIN. MSVC
>> minor adjustment to changed name of RC rule.
>
>> +
>> + #~ - The resource compiler.
>> + local rc =
>> + [ common.get-invocation-command gcc
>> + : windres : [ feature.get-values <rc> : $(options) ] : $(bin)
>> : PATH ] ; + local rc-type =
>> + [ feature.get-values <rc-type> : $(options) ] ;
>> + rc-type ?= windres ;
>> + rc.configure $(rc) : $(condition) : <rc-type>$(rc-type) ;
>
> Rene, with this patch you'll get:
>
> warning: toolset gcc initialization: can't find tool windres
>
> on a vanilla Linux system, becase 'common.get-invocation-command' checks if
> the tool exists. Maybe, this logic should be activated only on NT/CYGWIN?
What about cross-compilation, which is what I'm trying to eventually
support? It might be better to pass an "optional" flag to
get-invocation-command?
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
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