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

* new/generators.jam

(register-standard, register-composing): Return the created instance.


[SVN r20329]
This commit is contained in:
Vladimir Prus
2003-10-10 10:33:33 +00:00
parent f9797fb791
commit 800c6da493
2 changed files with 14 additions and 2 deletions

View File

@@ -641,11 +641,16 @@ rule register ( g )
}
# Creates new instance of the 'generator' class and registers it.
# Retursn the creates instance.
# Rationale: the instance is returned so that it's possible to first register
# a generator and then call 'run' method on that generator, bypassing all
# generator selection.
rule register-standard ( id : source-types + : target-types + : requirements * )
{
local g = [ new generator $(id) : $(source-types) : $(target-types)
: $(requirements) ] ;
register $(g) ;
register $(g) ;
return $(g) ;
}
# Creates new instance of the 'composing-generator' class and
@@ -655,6 +660,7 @@ rule register-composing ( id : source-types + : target-types + : requirements *
local g = [ new generator $(id) true : $(source-types)
: $(target-types) : $(requirements) ] ;
register $(g) ;
return $(g) ;
}
# Returns all generators which belong to 'toolset', i.e. which

View File

@@ -641,11 +641,16 @@ rule register ( g )
}
# Creates new instance of the 'generator' class and registers it.
# Retursn the creates instance.
# Rationale: the instance is returned so that it's possible to first register
# a generator and then call 'run' method on that generator, bypassing all
# generator selection.
rule register-standard ( id : source-types + : target-types + : requirements * )
{
local g = [ new generator $(id) : $(source-types) : $(target-types)
: $(requirements) ] ;
register $(g) ;
register $(g) ;
return $(g) ;
}
# Creates new instance of the 'composing-generator' class and
@@ -655,6 +660,7 @@ rule register-composing ( id : source-types + : target-types + : requirements *
local g = [ new generator $(id) true : $(source-types)
: $(target-types) : $(requirements) ] ;
register $(g) ;
return $(g) ;
}
# Returns all generators which belong to 'toolset', i.e. which