def setupVld(env):
sourcePath = env\['vldBinDir'\]
targetPath = env\['testDir'\]
toCopy = \['dbghelp.dll',
'vld_x86.dll',
'Microsoft.DTfW.DHL.manifest'\]
nodes = \[\]
for c in toCopy:
n = env.Command(os.path.join(targetPath, c),
os.path.join(sourcePath, c),
SCons.Defaults.Copy("${TARGET}", "${SOURCE}"))
nodes.append(n)
env\['vldDeps'\] = nodes