|
Boost-Build : |
From: Motonari Ito (motonarii_at_[hidden])
Date: 2008-05-15 12:15:59
Hi Jurko,
> Don't have the time to come up with a working example at the moment
>but one way to do it would be to add a custom command line parameter
>(use the MATCH to scan for it, for example see how the --built-type
>parameter is implemented in the Boos library's Jamroot file). Note that
>then you would need to tunnel the value passed on the command line to
>the appropriate target property.
It worked!
local install-dir = [ MATCH "^--install-dir=(.*)" : [ modules.peek :
ARGV ] ] ;
exe aaa : [ glob *.cpp ] ;
install dist : aaa : <location>$(install-dir) ;
% bjam --install-dir=foo
> Another way would be to use Boost Build's target specific
properties.
>I believe the syntax is something like:
I could not find a way to specify target specific properties in
documentation.
http://www.boost.org/boost-build2/doc/html/bbv2/reference.html#bbv2.refe
rence.init.args
Well, anyway, my problem is solved. Thank you for your help!
> P.S.
> Do not know the language, so I was wondernig which is the name and
> whic is the surname ? :-)
I intentionally put the first name before the surname to adapt to
English
culture, so Motonari is the first name. The surname generally comes
first
in Japanese language :-)
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