|
Boost-Build : |
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-09-07 16:28:31
K. Noel Belcourt wrote:
> Is there some documentation on how to modify Boost build to add new
> command line options?
Not that I know of.
> I'd like to know where and how to add options
> when using bjam v2 head. I want to make these command line arguments
> available to the project Jamfiles and would prefer command line
> arguments to requiring users to set environment variables. Something
> like
>
> bjam --v2 --builddir=/my/derived/files --materialdir=/my/material/
> library
>
> I've looked at what's done in the Boost distribution but from what I
> can tell, it seems to require modifications to the Jambase, which I'd
> rather avoid if possible. Any ideas?
No need to change Jambase... There's a global var "ARGV" which holds all
the arguments. Take a look at how the Boost Jamfile.v2
<http://boost.cvs.sourceforge.net/boost/boost/Jamfile.v2?revision=1.38&view=markup#l_175>
handles all the options it uses.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
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