Boost logo

Boost-Build :

From: Denis N. Kononenko (denisn.kononenko_at_[hidden])
Date: 2006-11-15 06:18:57


Hello All.

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?

WBR,
Denis.

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


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