(output_dir, runtime_dirs)
Copies the VS runtime DLLs from the given |runtime_dirs| to the output
  directory so that even if not system-installed, built binaries are likely to
  be able to run.

  This needs to be run after gyp has been run so that the expected target
  output directories are already created.

  This is used for the GYP build and gclient runhooks.
Copies the VS runtime DLLs from the given |runtime_dirs| to the output
  directory so that even if not system-installed, built binaries are likely to
  be able to run.
Copies the VS runtime DLLs from the given |runtime_dirs| to the output directory so that even if not system - installed built binaries are likely to be able to run .
def CopyVsRuntimeDlls(output_dir, runtime_dirs):
  """Copies the VS runtime DLLs from the given |runtime_dirs| to the output
  directory so that even if not system-installed, built binaries are likely to
  be able to run.

  This needs to be run after gyp has been run so that the expected target
  output directories are already created.

  This is used for the GYP build and gclient runhooks.
  """
  x86, x64 = runtime_dirs
  out_debug = os.path.join(output_dir, 'Debug')
  out_release = os.path.join(output_dir, 'Release')
  out_debug_x64 = os.path.join(output_dir, 'Debug_x64')
  out_release_x64 = os.path.join(output_dir, 'Release_x64')

  _CopyRuntime(out_debug,          x86, "x86", debug=True)
  _CopyRuntime(out_release,        x86, "x86", debug=False)
  _CopyRuntime(out_debug_x64,      x64, "x64", debug=True)
  _CopyRuntime(out_release_x64,    x64, "x64", debug=False)
def CopyVsRuntimeDlls ( output_dir , runtime_dirs ) : x86 , x64 = runtime_dirs out_debug = os . path . join ( output_dir , 'Debug' ) out_release = os . path . join ( output_dir , 'Release' ) out_debug_x64 = os . path . join ( output_dir , 'Debug_x64' ) out_release_x64 = os . path . join ( output_dir , 'Release_x64' ) _CopyRuntime ( out_debug , x86 , "x86" , debug = True ) _CopyRuntime ( out_release , x86 , "x86" , debug = False ) _CopyRuntime ( out_debug_x64 , x64 , "x64" , debug = True ) _CopyRuntime ( out_release_x64 , x64 , "x64" , debug = False )