RELEASE 0.15 - XXX
+ From Matt Balvin:
+
+ - Fix handling of library prefixes when the subdirectory matches
+ the prefix.
+
From Steven Knight:
- SCons now enforces (with an error) that construction variables
for f in files:
if SCons.Util.is_String(f):
- if pre and f[:len(pre)] != pre:
+ if pre:
path, fn = os.path.split(os.path.normpath(f))
- f = os.path.join(path, pre + fn)
+ if fn[:len(pre)] != pre:
+ f = os.path.join(path, pre + fn)
# Only append a suffix if the file does not have one.
if suf and not SCons.Util.splitext(f)[1]:
if f[-len(suf):] != suf:
tgt = builder(env, source = 'src3')
assert tgt.path == 'libsrc3', \
"Target has unexpected name: %s" % tgt.path
+ tgt = builder(env, target = 'lib/tgt4', source = 'lib/src4')
+ assert tgt.path == os.path.join('lib', 'libtgt4'), \
+ "Target has unexpected name: %s" % tgt.path
def test_src_suffix(self):
"""Test Builder creation with a specified source file suffix