Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-05-11 08:50:43


John Reid wrote:

> The documentation:
> http://boost.org/boost-build2/doc/html/bbv2/reference/definitions.html#bbv2.reference.ids
>
> suggests the following:
>
> "
> Target reference is used to specify a source target, and may
> additionally specify desired properties for that target. It has this
> syntax:
>
> target-reference -> target-id [ "/" requested-properties ]
> requested-properties -> property-path
>
> For example,
>
> exe compiler : compiler.cpp libs/cmdline/<optimization>space ;
> "
>
> but when I define my own free feature <antlr-name> and my own generator
> for .gl files the feature is not set. e.g.
>
> lib antlr_lib : lexer.gl/<antlr-name>SimpleLexer ;
>
> does not set the feature in the property set that is passed to the
> generator but if I do
>
> lib antlr_lib : lexer.gl : <antlr-name>SimpleLexer ;
>
> the feature is set.

Does your generator takes .gl files as input, or as output?
If it takes them as input, this behaviour is expected:

        lexer.gl/<antrl-name>SimpleLexer

builds lexer.gl adding the specified property to build request.
If this is just file, then any properties in build request have
no effect.

- Volodya


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