Boost logo

Boost-Build :

Subject: Re: [Boost-build] Custom generator
From: mlenger (mlenger_at_[hidden])
Date: 2010-05-19 05:25:19


Hello Juraj,

Thanks for your reply! I had to change the composing generator into a
standard generator. Otherwise the action process-wsdl was never called.
Im using Boost.Build V2 (Milestone 11);Boost.Jam 03.1.13.

Thanks
Markus

Am Samstag, den 15.05.2010, 19:39 +0200 schrieb Juraj Ivančić:
> On 14.5.2010 16:46, mlenger wrote:
> > I want to use Boost.Build for calling gsoap parsers that generate cpp- and
> > header-files from wsdl-files. I´ve tried adapting the generator examples
> > but am becoming more and more desperate. The problem is, that there are one
> > or more wsdl-files that are composed into header and implementation files.
> > There is no 1-1 relationship between wsdl and cpp or header files but
> > rather a arbitrary number of input files and a fixed number of output
> > files. Any ideas?
>
> Boost.Build provides composing generator for this purpose. E.g.
> (untested)
>
> <gsoap.jam>
> import type ;
> import generators ;
>
> type.register WSDL : wsdl ;
> generators.register-composing gsoap.process-wsdl : WSDL : CPP HPP ;
>
> # here you provide command line which invokes gsoap
> # and generates cpp and hpp
> actions process-wsdl
> {
> echo "WSDLs: $(2)"
> echo "Output CPP: $(1[1])"
> echo "Output HPP: $(1[2])"
> }
> </gsoap.jam>
>
> This allows using wsdl files as a source for executable or library
> directly:
>
> import gsoap ;
> exe client : client.cpp server.wsdl ;
>
> See
> http://www.boost.org/doc/tools/build/doc/html/bbv2/extending/tools.html
> for details.
>
> HTH
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build




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