|
Boost-Build : |
Subject: Re: [Boost-build] Named metatarget parameters
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2010-03-12 02:29:06
Rene Rivera wrote:
> Johan Nilsson wrote:
>> ... but looks even messier. Perhaps the first one (i.e. example after
>> the "Why not:" above) would be a reasonable candidate?
>
> I'm afraid that the whole "arg-type: value1 value2" is not going to
> work from a language parsing point of view because of:
I wasn't actually thinking about modifying the jam language, but rather to
do it on the library level using e.g. regexes to find the "arg-type:", and
invoke the rules as "up-level calls". I don't really know if it's possible
and it's probably not the best from performance point of view, but given the
"normal" amount of meta-targets I don't think it would be huge problem
performance-wise.
If one would be willing to modify the core language, this would most likely
not be my first suggestion.
>
> exe e : e.cpp :
> my-option: What's that:
> another-option: <fubar>2
> ;
With that "Why not:" above I referred to:
"Why not:
lib boost_math_long
: parsers.cpp # By position
: requirements
<link>static
[ target-builds has_long_long : "skipping boost.math long long" ]
;
"
Which should not be a problem, right?
Regards / 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