mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Add <dependency> feature.
Patch from Pedro Ferreira. [SVN r20878]
This commit is contained in:
@@ -600,6 +600,26 @@ class action
|
||||
}
|
||||
}
|
||||
|
||||
# Helper for 'actualize-sources'.
|
||||
# For each passed source, actualizes it with the appropriate scanner.
|
||||
# Returns the actualized virtual targets.
|
||||
rule actualize-source-type ( sources * )
|
||||
{
|
||||
local result = ;
|
||||
for local i in $(sources)
|
||||
{
|
||||
local scanner ;
|
||||
if [ $(i).type ]
|
||||
{
|
||||
scanner =
|
||||
[ type.get-scanner [ $(i).type ] : $(properties) ] ;
|
||||
}
|
||||
result += [ $(i).actualize $(scanner) ] ;
|
||||
}
|
||||
|
||||
return $(result) ;
|
||||
}
|
||||
|
||||
# Creates actual jam targets for sources. Initialized two member
|
||||
# variables:.
|
||||
# 'self.actual-sources' -- sources which are passed to updating action
|
||||
@@ -610,16 +630,10 @@ class action
|
||||
# if caller wants it.
|
||||
rule actualize-sources ( sources * )
|
||||
{
|
||||
for local i in $(sources)
|
||||
{
|
||||
local scanner ;
|
||||
if [ $(i).type ]
|
||||
{
|
||||
scanner =
|
||||
[ type.get-scanner [ $(i).type ] : $(properties) ] ;
|
||||
}
|
||||
self.actual-sources += [ $(i).actualize $(scanner) ] ;
|
||||
}
|
||||
local dependencies = [ $(self.properties).get <dependency> ] ;
|
||||
|
||||
self.dependency-only-sources += [ actualize-source-type $(dependencies) ] ;
|
||||
self.actual-sources += [ actualize-source-type $(sources) ] ;
|
||||
}
|
||||
|
||||
rule path ( )
|
||||
|
||||
@@ -81,6 +81,7 @@ feature def-file : : free dependency ;
|
||||
# of the library.
|
||||
feature allow : : free ;
|
||||
|
||||
feature dependency : : free dependency ;
|
||||
|
||||
# Windows-specific features
|
||||
|
||||
|
||||
Reference in New Issue
Block a user