Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-18 12:54:23


On Wednesday 15 November 2006 14:18, Denis N. Kononenko wrote:

[CC for convenience, please reply to list]

> I'm writing my own custom generator and have just faced with a
> problem. I tried to add feature that passes a filename to an action.
> Path to the filename should be relative to the Jamfile. I wrote the
> following code:
>
> [ gsoap.jam ]
> import feature : feature ;
> feature gsoap-typemap-file : : path free ;
>
> import toolset : flags ;
> flags gsoap.compile.wsdl GSOAP_TYPEMAP_FILE <gsoap-typemap-file> ;
>
> actions compile.wsdl bind GSOAP_TYPEMAP_FILE
> {
> $(GSOAP_WSDL2H) -o$(<) -t$(GSOAP_TYPEMAP_FILE) $(>)
> }
>
> [ gsoap.jam ]
>
> and my Jamfile:
>
> [ Jamroot ]
> exe opws
>
> : $(SOURCES) $(WSDLS)
> : <gsoap-typemap-file>wsdl/typemap.dat <include>d:/cpp/gsoap
>
> ;
> [ Jamroot ]
>
> But it doesn' work. :( The variable GSOAP_TYPEMAP_FILE is bound to an
> output directory (e.g. bin/msvc/debug/wsdl/typemap.dat) instead of
> project root (wsdl/typemap.dat).
>
> What's wrong with my code?

I don't know, given that you haven't provided it all. The key word here
is "all" -- I don't see any generator declarations for example, and the
$(WSDLS) variable is not defined. Please always provide complete example that
I can unpack and try right away.

>
> WBR,
> Denis.
>
> P.S. I tried to use 'dependency' instead of 'path' but it failed too.

Did you check:

     http://boost.org/boost-build2/doc/html/bbv2/extending/features.html

among other things that page says for that dependency features you need to
have explicit DEPENDS somewhere. If that still does not help, post a complete
example and I'll look.

- 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