(debug_file)
| 21 | import vs_toolchain |
| 22 | |
| 23 | def CopyDebuggerFile(debug_file): |
| 24 | win_sdk_dir = vs_toolchain.SetEnvironmentAndGetSDKDir() |
| 25 | if not win_sdk_dir: |
| 26 | return |
| 27 | |
| 28 | full_path = os.path.join(win_sdk_dir, 'Debuggers', target_cpu, debug_file) |
| 29 | if not os.path.exists(full_path): |
| 30 | return |
| 31 | |
| 32 | target_path = os.path.join(target_dir, debug_file) |
| 33 | vs_toolchain._CopyRuntimeImpl(target_path, full_path, verbose=False) |
| 34 | |
| 35 | # Ninja expects the file's timestamp to be newer than this script. |
| 36 | os.utime(target_path, None) |
| 37 | |
| 38 | CopyDebuggerFile('dbgeng.dll') |
no test coverage detected