2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Improve the hanling of "inline" targets, like:

alias foo : [ run a.cpp ] ;

and

	exe main : main.cpp [ lib helpers : helpers.cpp ] ;

Now inline targets are marked explicit, so that they are not
build unless requested, and for the alias target, the names
of inline targets are not qualified by the name of top-level target.

	build/
	* alias.jam (alias): Pass 'no-renaming' to
	target.main-target-sources.
	* target.jam (main-target-sources): New parameter
	'no-renaming'. Make inline target explicit.
	* builtin.jam (lib): Declare 'result' variable,
	to avoid implicit declaration of a global one.

	tools/
	* testing.jam (test-suite): Make synonymous with 'alias'.

	test/
	* inline.py: Adjust to the fact that alias no longer
	changes names of inline targets. Check that inline
	targets are explicit.


[SVN r35607]
This commit is contained in:
Vladimir Prus
2006-10-14 10:28:03 +00:00
parent b933fc2657
commit 3b4cca1b35
6 changed files with 71 additions and 39 deletions

View File

@@ -530,7 +530,16 @@ class python-test-generator : generator
{
if [ $(s).type ] = PY
{
python = $(s) ;
if ! $(python)
{
# First Python source ends up on command line.
python = $(s) ;
}
else
{
# Other Python sources become dependencies.
property-set = [ $(property-set).add-raw <dependency>$(s) ] ;
}
}
}