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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user