Subject: Re: [Boost-build] Library Definitions Global
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-17 14:07:37
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 ;
>> alias libs_core : kernel32 user32 shell32 uuid ole32 advapi32 ws2_32 ;
>> 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:
It's probably better to give the project an id.
project win32 ;
# library definitions
Then you can use win32//libs_core anywhere.
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