Boost logo

Boost-Build :

From: diddekio (d.griffioen_at_[hidden])
Date: 2003-07-22 11:54:47


--- In jamboost_at_[hidden], Rene Rivera <grafik666_at_r...> wrote:
> [2003-07-22] Dirk Griffioen wrote:
>
> >Hi,
> >
> >If I do something like <linkflags>"/NODEFAULTLIB:libcd" inside a
template
> >definition it ends up on the commandline like \NODEFAULTLIB:libcd -
which
> is
> >not a library ("\/" does not help). (This is for vc7 with
buildsystem v1.)
>
> Hmm strange, I'll look into it.
>
> >And secondly - is there a way to create a rule that calls a source
> generator
> >to create a file soapClient.cpp on which my target dependends:
> >
> >exe cl : <template>executable cl.cpp soapClient.cpp <lib>soap ;
> >
> >I've tried silly things like
> >
> >rule gsoap ( header )
> >{
> > gsoap-action $(header) ;
> >}
> >
> >actions gsoap-action
> >{
> > #global n'importe q..
> > local gsoap = V:\\gsoap-win32-2.2.3\\soapcpp2.exe ;
> > $(gsoap) $(<)
> >}
> >
> >but nothing happens :-( which confuses me because all html pages I
> consulted
> >where quite "you can do this" - and creating a generator is one
off I feel
>
> Did you call the gsoap rule anywhere in your Jamfile?
>
> And to preemt some questions...
>
> rule gsoap ( target : header )
> {
> if ! $(gIN_LIB_INCLUDE)
> {
> gsoap-exe on $(target) = V:\\gsoap-win32-2.2.3
\\soapcpp2.exe ;
> gsoap-action $(target) : $(header) ;
> }
> }
> actions gsoap-action
> {
> #global n'importe q..
> $(gsoap-exe) $(>)
> }
>
> ...I'm guessing that soapcpp2.exe always outputs to soadClient.cpp?
>
default yes (with -p(refix) you can change to ...)

> And after the exe cl... add:
>
> gsoap soapClient.cpp : soapClient.h ;
>
> ...Here I'm guessing you have such a header and is what you meant
above?
>
> And there's probably some path/grist/target things to add to make
the above
> really work in all circumstances.
>
> >(I do not understand it and there's no vc7 - yet - in v2. Great
promise
> >though!)
>
> I thought the msvc toolset in V2 supports vc7x.
>
I'll try asap - with the proposed rule (excellent :-)
>
> -- grafik - Don't Assume Anything
> -- rrivera (at) acm.org - grafik (at) redshift-software.com
> -- 102708583 (at) icq

 


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