2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

New rule virtual-target.select-by-type.

[SVN r32950]
This commit is contained in:
Vladimir Prus
2006-02-16 07:18:31 +00:00
parent 54ca7169b7
commit 776f6adfbf

View File

@@ -928,6 +928,22 @@ rule all-targets ( )
return $(.all-targets) ;
}
# Returns all targets from 'targets' with types
# equal to 'type' or derived from it.
rule select-by-type ( type : targets * )
{
local result ;
for local t in $(targets)
{
if [ type.is-subtype [ $(t).type ] $(type) ]
{
result += $(t) ;
}
}
return $(result) ;
}
rule register-actual-name ( actual-name : virtual-target )