Boost logo

Boost-Build :

Subject: Re: [Boost-build] jam/python function calling
From: Juraj Ivančić (juraj.ivancic_at_[hidden])
Date: 2010-07-14 11:02:11


On 14.7.2010 13:24, Vladimir Prus wrote:

> It seems like adding such annotation will be a bit of work. Does anybody
> have brighter ideas on the syntax, or how to avoid this mess?

You might consider defining @interop so that it takes a list of a list
of integers.
Each list is actually a rule how to break up single bjam parameter to
python parameters. This would be general enough for 'flags' rule too.

E.g.

for 'feature' - @interop( [[1],[1],[0]] )
for 'flags' - @interop( [[1,1,0],...] )

of course - with special handling for 0 meaning 'take everything that is
left'.

I played around in python and created a working example (attached).

HTH




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