OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "tools/gn/exec_process.h" |
| 6 |
5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
6 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
9 #include "base/process/launch.h" | 11 #include "base/process/launch.h" |
10 #include "base/process/process.h" | 12 #include "base/process/process.h" |
| 13 #include "build/build_config.h" |
11 | 14 |
12 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
13 #include <windows.h> | 16 #include <windows.h> |
14 | 17 |
15 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
16 #include "base/win/scoped_process_information.h" | 19 #include "base/win/scoped_process_information.h" |
17 #else | 20 #else |
18 #include <errno.h> | 21 #include <errno.h> |
19 #include <fcntl.h> | 22 #include <fcntl.h> |
20 #include <unistd.h> | 23 #include <unistd.h> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 return process.WaitForExit(exit_code); | 247 return process.WaitForExit(exit_code); |
245 } | 248 } |
246 } | 249 } |
247 | 250 |
248 return false; | 251 return false; |
249 } | 252 } |
250 #endif | 253 #endif |
251 | 254 |
252 } // namespace internal | 255 } // namespace internal |
253 | 256 |
OLD | NEW |