Boost logo

Boost-Build :

Subject: Re: [Boost-build] third party libraries
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-03-23 03:05:38


On Monday 22 March 2010 23:26:44 Börje Granberg wrote:

> Yeah, that works to trigger the work. The problem is that this rule
> triggers the make rule every time bjam is called although the library
> is already built, but outside the bin/ directory where boost searches.
> How do I solve this?

Specify the location where the library is actually generated:

    make libwhatever.so : [ glob *.c ] : @invoke-make : <location>whatever ;

> How can I use this library in the rest of the project?

Assuming the 'make' metatarget is defined in Jamfile at /scratch/thirdparty
then all your Jamfile can refer to:

        /scratch/thirdparty//libwhatever.so

Does this help?

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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