From e8e4dbc96db577b1286a70b836f61ca620d2d2e0 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 21 Oct 2004 07:05:39 +0000 Subject: [PATCH] Clarify alias/usage-requirements [SVN r25814] --- v2/doc/src/advanced.xml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/v2/doc/src/advanced.xml b/v2/doc/src/advanced.xml index b2b892e3a..97f0b2a99 100644 --- a/v2/doc/src/advanced.xml +++ b/v2/doc/src/advanced.xml @@ -910,7 +910,8 @@ lib a : a.cpp : <use>b : : <library>b ; alias core : im reader writer ; - The sources are returned without any modification. + will build the sources and return the generated source targets + without modification. @@ -927,7 +928,25 @@ alias core : im reader writer ; alias boost_thread : /boost/thread//boost_thread : <link>static ; and use only the boost_thread alias in your Jamfiles. - + + + + It is also allowed to specify usage requirements for the + alias target. If you write the following: + +alias header_only_library : : : : <include>/usr/include/header_only_library ; + + then using header_only_library in sources will only add an + include path. Also note that when there are some sources, their usage + requirements are propagated, too. For example: + +lib lib : lib.cpp : : : <include>. ; +alias lib_alias ; +exe main : main.cpp lib_alias ; + + will compile main.cpp with the additional include. + +