Boost logo

Boost-Build :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-09-08 04:07:51


K. Noel Belcourt wrote:
> Hi,
>
> Is there some documentation on how to modify Boost build to add new
> command line options? 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?

Apart from what others already have said, I think that there's support for
"pluggable" options. Adding a "option-name".jam file into
<bbv2-root>/options makes Boost.Build load and invoke the specific module,
IIRC.

I'm not sure if it's "officially" supported though, and is probably only
meant for options included in the stock Boost.Build distribution. Still,
it's a possibility.

HTH // Johan


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