mirror of
https://github.com/boostorg/build.git
synced 2026-02-17 13:42:14 +00:00
Merge from trunk
[SVN r34063]
This commit is contained in:
@@ -105,6 +105,7 @@ class generator
|
||||
import virtual-target ;
|
||||
import "class" : new ;
|
||||
import property ;
|
||||
import path ;
|
||||
|
||||
EXPORT class@generator : indent increase-indent decrease-indent generators.dout ;
|
||||
|
||||
@@ -414,8 +415,20 @@ class generator
|
||||
}
|
||||
}
|
||||
|
||||
# Names of sources might include directory. We should strip it.
|
||||
name = $(name:D=) ;
|
||||
# See if we need to add directory to the target name.
|
||||
local dir = [ $(sources[1]).name ] ;
|
||||
dir = $(dir:D) ;
|
||||
if $(dir) &&
|
||||
# Never append '..' to target path.
|
||||
! [ MATCH .*(\\.\\.).* : $(dir) ]
|
||||
&&
|
||||
! [ path.is-rooted $(dir) ]
|
||||
{
|
||||
# Relative path is always relative to the source
|
||||
# directory. Retain it, so that users can have files
|
||||
# with the same in two different subdirectories.
|
||||
name = $(dir)/$(name) ;
|
||||
}
|
||||
}
|
||||
|
||||
# Assign an action for each target
|
||||
|
||||
Reference in New Issue
Block a user