Boost logo

Boost-Build :

From: quancta (quancta_at_[hidden])
Date: 2004-03-17 18:14:24


Hi BJam'ers,

I am working on a project that use RogueWave LEIF tool to generate
C++ code from a webservice schema with this command:
wsdl2cpp.bat [options] webservice.wsdl
which produces a bunches of CPP files that need to be compiled into
a library. Hope someone can help me with the target spec; how can
I tell bjam that the targets is all the *.cpp files generated ?

I have this module - test.jam as follow:
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
type.register WSDL : wsdl ;
generators.register-standard test.wsdl : WSDL : CPP H ;

rule wsdl ( targets * : sources * : properties * )
{
.leif_dir = C:/RogueWave/LEIF ;
.leif_wsdl2cpp = $(.leif_dir)/bin/wsdl2cpp.bat -noserver -nosample
-nossl -nohtml -SourcePro ;
}

actions wsdl
{
del /Q $(<[1]:D)\\*.cpp $(<[1]:D)\\*.h
$(.leif_wsdl2cpp) -outdir $(<[1]:D) $(>)
}
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Then in my Jamfile:
lib webservice : webservice.wsdl ;

but that will only get me webservice.cpp into the build. I've trying
with glob, etc., but haven't figured out anything that work.

TIA,
Quan

 


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