Boost logo

Boost-Build :

From: Dirk Griffioen (dirk.griffioen_at_[hidden])
Date: 2005-07-19 14:24:55


hamletclaud wrote:

>Hi!
>
>Relates to: Boost Build V2
>
>I have an executable which as one of its sources uses a system
>library, so:
>
>------
>lib required_system_library
> :
> : <name>greatlib
>;
>
>exe final_exe :
> source1.cpp
>
> required_system_library
>;
>--------
>
>However, the system library has different names under Linux and
>Darwin. I would thus like to choose the library name (say, "greatlib"
>for Linux, but "greatlib_xy" for Darwin) depending on the OS, much as
>I can easily do for variants, optimization and other factors.
>This must be trivial, but in my stupidity I can't find the solution in
>the documentation nor in the jam source.
>
>Many thanks in advance!
>
>Claudius
>
>
Hi

We have the same problem - we now do

project
: requirements
# is dependent on
<use>/boost
<library>/boost/signals
;

use-project /boost : $(BOOST_ROOT) ;

and put all third party stuff in svn: bjam builds all for different
toolsets from source

but I can imagine situations wherenin you don't want this

if anyone knows the variant/os trick - i'd like to know too :)

Cheers, Dirk

>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>

 --------------000201010108070907070704 Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
hamletclaud wrote:
<blockquote cite="middbj0fo+6s50_at_[hidden]" type="cite">
<pre wrap="">Hi!

Relates to: Boost Build V2

I have an executable which as one of its sources uses a system
library, so:

------
lib required_system_library
:
: &lt;name&gt;greatlib
;

exe final_exe :
source1.cpp

required_system_library
;
--------

However, the system library has different names under Linux and
Darwin. I would thus like to choose the library name (say, "greatlib"
for Linux, but "greatlib_xy" for Darwin) depending on the OS, much as
I can easily do for variants, optimization and other factors.
This must be trivial, but in my stupidity I can't find the solution in
the documentation nor in the jam source.

Many thanks in advance!

Claudius
</pre>
</blockquote>
Hi<br>
<br>
We have the same problem - we now do<br>
<br>
<font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><tt><font
face="Courier New">project</font></tt><br>
<tt><font face="Courier New">: requirements</font></tt><br>
<tt><font face="Courier New"># is dependent on</font></tt><br>
<tt><font face="Courier New">&lt;use&gt;/boost</font></tt><br>
<tt><font face="Courier New">&lt;library&gt;/boost/signals</font></tt><br>
<tt><font face="Courier New">;</font></tt><br>
<br>
<tt><font face="Courier New">use-project /boost : $(BOOST_ROOT) ;</font></tt><br>
<br>
and put all third party stuff in svn: bjam builds all for different
toolsets from source<br>
<br>
but I can imagine situations wherenin you don't want this<br>
<br>
if anyone knows the variant/os trick - i'd like to know too :)<br>
<br>
<br>
Cheers, Dirk<br>
</span></font>
<blockquote cite="middbj0fo+6s50_at_[hidden]" type="cite">
<pre wrap="">

Yahoo! Groups Links

&lt;*&gt; To visit your group on the web, go to:
<a class="moz-txt-link-freetext" href="http://groups.yahoo.com/group/jamboost/">http://groups.yahoo.com/group/jamboost/>

&lt;*&gt; To unsubscribe from this group, send an email to:
<a class="moz-txt-link-abbreviated" href="mailto:jamboost-unsubscribe_at_[hidden]">jamboost-unsubscribe_at_[hidden]</a>

&lt;*&gt; Your use of Yahoo! Groups is subject to:
<a class="moz-txt-link-freetext" href="
http://docs.yahoo.com/info/terms/">http://docs.yahoo.com/info/terms/>

</pre>
</blockquote>
<br>
</body>
</html>
 --------------000201010108070907070704--


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