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

* tools/testing.jam (dump-test): Correctly compute path to the source

from project root.


[SVN r23018]
This commit is contained in:
Vladimir Prus
2004-06-03 08:47:14 +00:00
parent 576a99a21d
commit d5f4e78bb2
2 changed files with 11 additions and 3 deletions

View File

@@ -580,6 +580,13 @@ class file-reference : abstract-target
[ $(self.project).get source-location ] ] ;
return [ path.exists [ path.native $(location) ] ] ;
}
# Returns the location of target. Needed by 'testing.jam'
rule location ( )
{
return [ path.root $(self.name)
[ $(self.project).get source-location ] ] ;
}
}

View File

@@ -162,8 +162,9 @@ rule dump-test ( target )
local type = [ $(target).type ] ;
local name = [ $(target).name ] ;
local project = [ $(target).project ] ;
local project-root = [ project.attribute $(project) project-root-module ] ;
local project-root-location = [ $(project-root).location ] ;
local project-root = [ $(project).get project-root ] ;
local project-root-location = [ $(project-root).get-location ] ;
local sources = [ $(target).sources ] ;
local source-files ;
@@ -174,7 +175,7 @@ rule dump-test ( target )
source-files +=
[ path.relative
[ path.root [ $(s).location ] [ path.pwd ] ]
$(project-root-location) ] ;
[ path.root $(project-root-location) [ path.pwd ] ] ] ;
}
}