Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2006-05-05 06:57:45


Hi Noam !

On Friday 05 May 2006 12:34, Noam Tamim wrote:

> And have a "platform" feature that will select correct files, #defines,
> toolset, etc - based on its value.
> Note that selecting the toolset alone is not enough. There are a few
> different platforms that use the ARM Developer Suite, for example. They all
> use the same toolset (ADS 1.2), but have different SDK's, features, etc.

> I tried adding a feature to user-config.jam:
> import feature : feature ;
> feature platform : : free ;

I've got something like this in my Jamroot:

# find memory-leaks
import feature ;
feature.feature memory-check : off on : propagated ;

> and conditionally specify other requirements based on that in the Jamfile:
> lib PortingLayer : <platform>Win32:<include>Win32
> <platform>PocketPC:<include>PocketPC

and then use

        # Boost-Options
        # Shared-Ptr with Quick-Allocator
        # ------------------------------
        <memory-check>off:<define>BOOST_SP_USE_QUICK_ALLOCATOR

and
        # Memory-Management
        # -----------------
        <memory-check>on:<define>PROJECT_MEMORY_CHECK

in my "requirements".

Note that this is a feature with fixed values, but "free" should work also.

> Note: this has nothing to do with my other question, about a new toolset
> (hcac). It's for a different project.

I hope this helps.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57  ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99  ! Lister Straße 15
* hunold_at_[hidden]          ! www.ive-mbh.de

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