Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/bbv2/faq/s06.html @ 12

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

added boost

File size: 3.0 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>How to get the project-root location?
5    </title>
6<link rel="stylesheet" href="../../boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
8<style type="text/css">
9body { background-image: url('http://docbook.sourceforge.net/release/images/draft.png');
10       background-repeat: no-repeat;
11       background-position: top left;
12       /* The following properties make the watermark "fixed" on the page. */
13       /* I think that's just a bit too distracting for the reader... */
14       /* background-attachment: fixed; */
15       /* background-position: center center; */
16     }</style>
17<link rel="start" href="../../index.html" title="The Boost C++ Libraries">
18<link rel="up" href="../faq.html" title="Chapter 27. Frequently Asked Questions">
19<link rel="prev" href="external.html" title="Can I get output of external program as a variable in a Jamfile?
20    ">
21<link rel="next" href="s07.html" title="How to change compilation flags for one file?
22    ">
23</head>
24<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25<table cellpadding="2" width="100%">
26<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../../../boost.png"></td>
27<td align="center"><a href="../../../../index.htm">Home</a></td>
28<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
29<td align="center"><a href="../../../../people/people.htm">People</a></td>
30<td align="center"><a href="../../../../more/faq.htm">FAQ</a></td>
31<td align="center"><a href="../../../../more/index.htm">More</a></td>
32</table>
33<hr>
34<div class="spirit-nav">
35<a accesskey="p" href="external.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="s07.html"><img src="../../images/next.png" alt="Next"></a>
36</div>
37<div class="section" lang="en">
38<div class="titlepage"><div><div><h2 class="title" style="clear: both">
39<a name="id2861845"></a>How to get the project-root location?
40    </h2></div></div></div>
41<p>You might want to use the location of the project-root in your
42      Jamfiles. To do it, you'd need to declare path constant in your
43      project-root.jam:
44</p>
45<pre class="programlisting">
46path-constant TOP : . ;
47</pre>
48<p>
49      After that, the <code class="computeroutput">TOP</code> variable can be used in every Jamfile.
50    </p>
51</div>
52<table width="100%"><tr>
53<td align="left"></td>
54<td align="right"><small></small></td>
55</tr></table>
56<hr>
57<div class="spirit-nav">
58<a accesskey="p" href="external.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="s07.html"><img src="../../images/next.png" alt="Next"></a>
59</div>
60</body>
61</html>
Note: See TracBrowser for help on using the repository browser.