2
0
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:
Vladimir Prus
2003-11-20 13:01:58 +00:00
parent 582324b8ef
commit 7a4f4d6be2
2 changed files with 25 additions and 10 deletions

View File

@@ -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 ( )

View File

@@ -81,6 +81,7 @@ feature def-file : : free dependency ;
# of the library.
feature allow : : free ;
feature dependency : : free dependency ;
# Windows-specific features