mirror of
https://github.com/boostorg/build.git
synced 2026-02-02 20:52:13 +00:00
65 lines
2.3 KiB
HTML
65 lines
2.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content=
|
|
"HTML Tidy for Linux/x86 (vers 1st April 2002), see www.w3.org">
|
|
<meta name="generator" content="Microsoft FrontPage 5.0">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=windows-1252">
|
|
<!-- tidy options: ‐‐tidy-mark false -i -wrap 78 !-->
|
|
|
|
<title>Boost Build System V2 recipes</title>
|
|
</head>
|
|
|
|
<body bgcolor="#FFFFFF" text="#000000">
|
|
<img src="../c++boost.gif" alt="c++boost.gif (8819 bytes)" align="center"
|
|
width="277" height="86"> <a href="http://sourceforge.net"><img src=
|
|
"http://sourceforge.net/sflogo.php?group_id=7586&type=1" width="88"
|
|
height="31" border="0" alt="SourceForge.net Logo" align="right"></a>
|
|
|
|
<h1>Boost Build System V2 recipes</h1>
|
|
|
|
<dl class="page-index">
|
|
<dt><a href="#site_config_targets">Targets in site-config.jam</a></dt>
|
|
</dl>
|
|
|
|
<h2 id="site_config_targets">Targets in site-config.jam</h2>
|
|
|
|
<p>It is desirable to declare standard libraries available on a given
|
|
system. Putting target declaration in Jamfile is not really good, since
|
|
locations of the libraries can vary. The solution is to put the following
|
|
to site-config.jam.</p>
|
|
<pre>
|
|
import project ;
|
|
project.initialize $(__name__) ;
|
|
project site-config ;
|
|
lib zlib : : <name>z ;
|
|
|
|
</pre>
|
|
|
|
<p>The second line allows this module to act as project. The third line
|
|
gives id to this project ---it really has no location and cannot be used
|
|
otherwise. The fourth line just declares a target. Now, one can write</p>
|
|
<pre>
|
|
exe hello : hello.cpp /site-config//zlib ;
|
|
</pre>
|
|
in any Jamfile.
|
|
<hr>
|
|
|
|
<p>© Copyright Vladimir Prus 2003. Permission to copy, use, modify,
|
|
sell and distribute this document is granted provided this copyright
|
|
notice appears in all copies. This document is provided "as is" without
|
|
express or implied warranty, and with no claim as to its suitability for
|
|
any purpose.</p>
|
|
|
|
<p>Revised
|
|
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan
|
|
-->June 18, 2003
|
|
<!--webbot bot="Timestamp" endspan i-checksum="13972"
|
|
-->
|
|
</p>
|
|
</body>
|
|
</html>
|
|
|