2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00
* new/generators.jam
  (generator.convert-multiple-sources-to-consumable-types): New parameter
  'multiple'.


[SVN r20437]
This commit is contained in:
Vladimir Prus
2003-10-21 07:47:33 +00:00
parent 61991baf6b
commit b17027983d
2 changed files with 6 additions and 4 deletions

View File

@@ -550,8 +550,9 @@ class generator
# Converts several files to consumable types.
rule convert-multiple-sources-to-consumable-types
( project : property-set : sources * : consumed-var bypassed-var )
( project : property-set : sources * : consumed-var bypassed-var : multiple ? )
{
multiple ?= * ;
# We process each source one-by-one, trying to convert it to
# a usable type.
local failed ;
@@ -561,7 +562,7 @@ class generator
local _b ;
# TODO: need to check for failure on each source.
convert-to-consumable-types $(project) : $(property-set)
: $(sources[1]) : * : true : _c _b ;
: $(sources[1]) : $(multiple) : true : _c _b ;
if ! $(_c)
{
generators.dout [ indent ] " failed to convert " [ $(sources[1]).str ] ;

View File

@@ -550,8 +550,9 @@ class generator
# Converts several files to consumable types.
rule convert-multiple-sources-to-consumable-types
( project : property-set : sources * : consumed-var bypassed-var )
( project : property-set : sources * : consumed-var bypassed-var : multiple ? )
{
multiple ?= * ;
# We process each source one-by-one, trying to convert it to
# a usable type.
local failed ;
@@ -561,7 +562,7 @@ class generator
local _b ;
# TODO: need to check for failure on each source.
convert-to-consumable-types $(project) : $(property-set)
: $(sources[1]) : * : true : _c _b ;
: $(sources[1]) : $(multiple) : true : _c _b ;
if ! $(_c)
{
generators.dout [ indent ] " failed to convert " [ $(sources[1]).str ] ;