|
Boost-Build : |
Subject: Re: [Boost-build] Custom generator
From: Juraj IvanÄiÄ (juraj.ivancic_at_[hidden])
Date: 2010-05-15 13:39:32
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
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