Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/bbv2/recipies/site-config.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 3.4 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Targets in site-config.jam</title>
5<link rel="stylesheet" href="../../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7<style type="text/css">
8body { background-image: url('http://docbook.sourceforge.net/release/images/draft.png');
9       background-repeat: no-repeat;
10       background-position: top left;
11       /* The following properties make the watermark "fixed" on the page. */
12       /* I think that's just a bit too distracting for the reader... */
13       /* background-attachment: fixed; */
14       /* background-position: center center; */
15     }</style>
16<link rel="start" href="../../index.html" title="The Boost C++ Libraries">
17<link rel="up" href="../faq.html" title="Chapter 27. Frequently Asked Questions">
18<link rel="prev" href="../faq/dll-path.html" title="Why are the dll-path and
19    hardcode-dll-paths properties useful?
20    ">
21<link rel="next" href="../arch.html" title="Appendix B. Boost.Build v2 architecture">
22</head>
23<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
24<table cellpadding="2" width="100%">
25<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../../../boost.png"></td>
26<td align="center"><a href="../../../../index.htm">Home</a></td>
27<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
28<td align="center"><a href="../../../../people/people.htm">People</a></td>
29<td align="center"><a href="../../../../more/faq.htm">FAQ</a></td>
30<td align="center"><a href="../../../../more/index.htm">More</a></td>
31</table>
32<hr>
33<div class="spirit-nav">
34<a accesskey="p" href="../faq/dll-path.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../faq.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../arch.html"><img src="../../images/next.png" alt="Next"></a>
35</div>
36<div class="section" lang="en">
37<div class="titlepage"><div><div><h2 class="title" style="clear: both">
38<a name="bbv2.recipies.site-config"></a>Targets in site-config.jam</h2></div></div></div>
39<p>It is desirable to declare standard libraries available on a
40      given system. Putting target declaration in Jamfile is not really
41      good, since locations of the libraries can vary. The solution is
42      to put the following to site-config.jam.</p>
43<pre class="programlisting">
44import project ;
45project.initialize $(__name__) ;
46project site-config ;
47lib zlib : : &lt;name&gt;z ;
48</pre>
49<p>The second line allows this module to act as project. The
50      third line gives id to this project &#8212; it really has no location
51      and cannot be used otherwise. The fourth line just declares a
52      target. Now, one can write:
53</p>
54<pre class="programlisting">
55exe hello : hello.cpp /site-config//zlib ;
56</pre>
57<p>
58      in any Jamfile.</p>
59</div>
60<table width="100%"><tr>
61<td align="left"></td>
62<td align="right"><small></small></td>
63</tr></table>
64<hr>
65<div class="spirit-nav">
66<a accesskey="p" href="../faq/dll-path.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../faq.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../arch.html"><img src="../../images/next.png" alt="Next"></a>
67</div>
68</body>
69</html>
Note: See TracBrowser for help on using the repository browser.