From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-24 12:20:56
Ali Azarbayejani wrote:
> > local a = [ $(l).action ] ;
> > local p = [ $(a).properties-ps ] ;
> > local other-libraries =
> > [ feature.get-values <library> : [ $(p).raw ] ] ;
> > ECHO [ $(l).str ] " : depends on " $(other-libraries) ;
> > If you remove the girst (i.e. $(other-libraries:G=), you'll get the list
> > of virtual targets for other libraries that this one depend on.
> However, in the above code, if $(l) is a searched-lib-target, the
> returned action $(a) is empty, so I can't get properties for it using
> this method. Therefore, it is impossible to handle the case of one
> system lib depending on another. For example, you might want Xt -> X11
> and would like to specify
> lib X11 : : <name>X11 ;
> lib Xt : : <name>Xt <dependency>X11 ;
> Any thoughts on this?
I thought that 'search-lib-target' does not need properties so it has none....
Hmm... probably the right way to go is to use 'subvariant-dg' object
which must be associated with each target. It stores properties requested
from main target, and also actual build properties, which includes
<dependency> properties that we care about. But a method should be
added to that class to query the real properties.
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