Boost logo

Boost-Build :

Subject: Re: [Boost-build] Library or tool outpath path
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-03-09 09:36:27


On 3/9/2016 2:20 AM, Vladimir Prus wrote:
> On 09-Mar-16 9:45 AM, Edward Diener wrote:
>> On 3/8/2016 11:34 AM, Steven Watanabe wrote:
>>> AMDG
>>>
>>> On 03/08/2016 08:54 AM, Edward Diener wrote:
>>>> When using b2 to build a particular non-header only library from that
>>>> library's build directory, or when building a particular tool from that
>>>> tool's build directory, is there a way to specify on the command line a
>>>> final path where I want that library or tool to be copied to ? I tried
>>>> using --prefix but it had no effect.
>>>>
>>>
>>> There should be stage and install targets
>>> like at the top level, but I don't think
>>> anyone uses them, so they might be broken.
>>
>> I am not invoking b3 from the top level but from the particular tool's
>> build directory. Should stage and install targets
>> work if not at the top level ?
>
> Edward,
>
> In Boost.Build, "b2 stage" or "b2 install" work iff project in the
> current directory has "stage" or "install" targets declared. Unlike
> make, we don't have a global namespace where all targets are dumped.
>
> In Boost C++ Libraries, it's a good idea to have each component declare
> such targets - in particular for compiled
> libraries we have 'boost-install' function that declares these targets.
> Possibly the library or tool you're working
> with is not doing that?

Where is 'boost-install' documented ?

I am looking at the jam file for the wave tool. The jamfile has:

install dist-bin
     :
     wave
     :
     <install-type>EXE
     <location>../../../dist/bin
     :
     release
     ;

install dist-lib
     :
     wave
     :
     <install-type>LIB
     <location>../../../dist/lib
     :
     release
     ;

How can these be changed so that they honor the --libdir I pass when
invoking b2 with this jamfile ?

What would adding a 'boost_install' in the jamfile look like ?


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