Boost logo

Boost Users :

Subject: Re: [Boost-users] large variant performance compared (50 elements)
From: Paul (peebor_at_[hidden])
Date: 2011-01-12 15:22:57


>
> I can try to improve this. I know that it
> needs a Jamroot and there needs to be a
> use-project boost : path/to/boost ;
> somewhere. Is there anything else?
>

The Jamfile.v2 in profile_template/src:

#
# Copyright (c) 2008
# Steven Watanabe
#
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

import modules ;

local boost = [ modules.peek : BOOST ] ;

project src : :
     requirements <include>path-to-boost <library-path>path-to-boost
<link>static ;

exe postprocess : postprocess.cpp $(boost)/libs/regex/build//boost_regex
: <variant>release ;
exe filter : filter.cpp $(boost)/libs/regex/build//boost_regex :
<variant>release ;

The Jamfile of the cpp being profiled (much is workarea/project specific):

# Jamfile.v2
#
# Copyright (c) 2008
# Steven Watanabe
#
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

import modules ;
modules.load template-profile :
../../../../../../profile_templates/template-profile.jam ;

template-profile archive : Archive.cpp : <include>../../../../include
<include>added-some-more-project-specific-include-paths
<define>BOOST_ALL_DYN_LINK=1 ;


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net