Boost logo

Boost-Build :

From: Eric Woodruff (eric.woodruff_at_[hidden])
Date: 2008-04-04 15:03:30


Could an action be specified to build boost if the libraries aren't
found? (Which in my case would include untarring it.)

Roland Schwarz wrote:
> I just have finished a module for easier use of pre-built boost
> libraries.
>
> Other than in windows builds there is no auto-link
> available with gcc. This makes it very tedious to specify boost
> library names if multiple variants tagged for debug,release
> static,shared or different compiler versions are installed.
>
> My module allows to uniformly name the libraries from the
> project Jamfiles while still being able to get the appropriately
> tagged versions.
>
> A typical use would be to specify in user-config.jam
>
> import boost ;
>
> # Configure the pre-built 1.35 version as the default.
> boost.config 1.35
> : <include>/home/roland/include/boost-1_35
> <library>/home/roland/lib
> ;
> # Configure the version with the symbolic name 'trunk' to use a specific
> # source tree.
> boost.config trunk
> : <root>/home/roland/projects/boost/trunk
> ;
>
> # Configure a previous version of the library
> boost.config 1.34.1
> : <include>/home/roland/include/boost-1_34_1
> <library>/home/roland/lib
> ;
>
> And in a Jamfile that needs to link to boost libraries:
>
> using boost : 1.35 ;
>
> exe myexe
> : mysrc.cpp
> : <library>/boost//program_options
> <variant>release
> <link>static
> ;
>
> To use the library from source tree instead you simply
> would need to replace the using by:
>
> using boost : trunk ;
>
> The module is intended to be installed into the boost-build tools
> directory. It has provisions to take care of different library
> setups and tagging rules.
>
> I would be glad to contribute the code to boost if there is
> interest.
>
> Regards speedsnail
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


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