Boost logo

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.

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])"

This allows using wsdl files as a source for executable or library

import gsoap ;
exe client : client.cpp server.wsdl ;

for details.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at