From 5d464bf1b6072d45c3eb5d80af2b3b5ccad2c4d4 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 13 Jan 2006 08:42:10 +0000 Subject: [PATCH] Revive basic-targets.sources, needed for --dump-tests functionality. [SVN r32312] --- src/build/targets.jam | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/build/targets.jam b/src/build/targets.jam index 668c1e416..4a5a543f1 100644 --- a/src/build/targets.jam +++ b/src/build/targets.jam @@ -1012,6 +1012,22 @@ class basic-target : abstract-target } } + # Returns the list of abstract-targets which are used as sources. + # The extra properties specified for sources are not represented. + # The only used of this rule at the moment is the "--dump-test" + # feature of the test system. + rule sources ( ) + { + if ! $(self.source-targets) { + for local s in $(self.sources) + { + self.source-targets += + [ targets.resolve-reference $(s) : $(self.project) ] ; + } + } + return $(self.source-targets) ; + } + rule requirements ( ) { return $(self.requirements) ;