Boost logo

Boost-Build :

Subject: Re: [Boost-build] Library Definitions Global
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-17 14:07:37


AMDG

On 1/17/2011 10:59 AM, Gevorg Voskanyan wrote:
> Richard B. Opsal, Ph.D. wrote:
>> Is it possible to define library definitions "up" in the chain of jamfile.jam
>> files. For example, I would like to define:
>>
>> lib advapi32 : : <name>advapi32 ;
>> <etc.>
>>
>> alias libs_core : kernel32 user32 shell32 uuid ole32 advapi32 ws2_32 ;
>> <etc.>
>>
>>
>> It would then be convenient to access the various libraries by their aliases.
>
>
> Well, you could have this in your top-level jamroot file:
>
> path-constant TOP : . ;
>
> # not necessary to write a target for every separate lib
>
> alias libs_core : [ lib kernel32 user32 shell32 uuid ole32 advapi32 ws2_32 ]
> ;
> # other libs_* aliases...
>
> And then refer to them in child jamfiles like this:
>
> $(TOP)//libs_core
>

It's probably better to give the project an id.

project win32 ;
# library definitions

Then you can use win32//libs_core anywhere.

In Christ,
Steven Watanabe


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