|
Boost-Build : |
From: Dirk Griffioen (d.griffioen_at_[hidden])
Date: 2003-07-22 11:39:27
Hi,
If I do something like <linkflags>"/NODEFAULTLIB:libcd" inside a template
definition it ends up on the commandline like \NODEFAULTLIB:libcd - this is
a problem beacause now the linker thinks it's a library ("\/" does not
help). (This is for vc7 with buildsystem v1.)
And secondly - is there a way to create a rule that calls a source generator
- say gsoap - to create a file soapClient.cpp on which a target dependends:
#the jamfile:
gsoap bla.hpp ; #bla.hpp has defs the soap compiler understands
exe cl : <template>executable cl.cpp soapClient.cpp <lib>soap ;
#the rule somewhere in a included my.rule.jam:
soapcompiler ?= V:\\gsoap-win32-2.2.3\\soapcpp2.exe ;
rule gsoap ( header )
{
gsoap-action $(header) ;
}
actions gsoap-action
{
$(soapcompiler) $(<)
}
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 (I do not understand it
and there's no vc7 - yet - in v2.)
Thnx in advance
Dirk Griffioen
------_=_NextPart_001_01C3506F.D124AEE0 Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2653.12"=
>
<TITLE><linkflags> and "/"</TITLE>
</HEAD>
<BODY>
<P><FONT FACE=3D"Garamond">Hi,</FONT>
</P>
<P><FONT FACE=3D"Garamond">If I do something like <linkflags>"/N=
ODEFAULTLIB:libcd" inside a template definition it ends up on the comm=
andline like \NODEFAULTLIB:libcd - this is a problem beacause now the=
linker thinks it's a library ("\/" does not help). (This is for =
vc7 with buildsystem v1.)</FONT></P>
<P><FONT FACE=3D"Garamond">And secondly - is there a way to create a rule t=
hat calls a source generator - say gsoap - to create a file soapClient.cpp =
on which a target dependends:</FONT></P>
<P><FONT FACE=3D"Garamond">#the jamfile:</FONT>
</P>
<P><FONT FACE=3D"Garamond">gsoap bla.hpp ; #bla.hpp has defs the soap compi=
ler understands</FONT>
</P>
<P><FONT FACE=3D"Garamond">exe cl : <template>executable cl.cpp soapC=
lient.cpp <lib>soap ;</FONT>
</P>
<P><FONT FACE=3D"Garamond">#the rule somewhere in a included my.rule.jam:</=
FONT>
<BR><FONT FACE=3D"Garamond">soapcompiler ?=3D V:\\gsoap-win32-2.2.3\\soapcp=
p2.exe ;</FONT>
</P>
<P><FONT FACE=3D"Garamond">rule gsoap ( header )</FONT>
<BR><FONT FACE=3D"Garamond">{ </FONT>
<BR><FONT FACE=3D"Garamond"> gsoap-action $(header) ;</FONT>
<BR><FONT FACE=3D"Garamond">}</FONT>
</P>
<P><FONT FACE=3D"Garamond">actions gsoap-action</FONT>
<BR><FONT FACE=3D"Garamond">{</FONT>
<BR><FONT FACE=3D"Garamond"> $(soapcompiler) $(<)</FONT>
<BR><FONT FACE=3D"Garamond">}</FONT>
</P>
<P><FONT FACE=3D"Garamond">but nothing happens :-( </FONT>
</P>
<P><FONT FACE=3D"Garamond">which confuses me because all html pages I consu=
lted where quite "you can do this" - and creating a generator is =
one off I feel (I do not understand it and there's no vc7 - yet - in v2.)</=
FONT></P>
<P><FONT FACE=3D"Garamond">Thnx in advance </FONT>
</P>
<P><FONT FACE=3D"Garamond">Dirk Griffioen</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML> ------_=_NextPart_001_01C3506F.D124AEE0--
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