| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/setup.h" | 5 #include "tools/gn/setup.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 if (cmdline->HasSwitch(kTracelogSwitch)) | 195 if (cmdline->HasSwitch(kTracelogSwitch)) |
| 196 SaveTraces(cmdline->GetSwitchValuePath(kTracelogSwitch)); | 196 SaveTraces(cmdline->GetSwitchValuePath(kTracelogSwitch)); |
| 197 | 197 |
| 198 return true; | 198 return true; |
| 199 } | 199 } |
| 200 | 200 |
| 201 // Setup ----------------------------------------------------------------------- | 201 // Setup ----------------------------------------------------------------------- |
| 202 | 202 |
| 203 Setup::Setup() | 203 Setup::Setup() |
| 204 : CommonSetup(), | 204 : CommonSetup(), |
| 205 empty_toolchain_(Label()), | 205 empty_settings_(&empty_build_settings_, std::string()), |
| 206 empty_settings_(&empty_build_settings_, &empty_toolchain_, std::string()), | |
| 207 dotfile_scope_(&empty_settings_) { | 206 dotfile_scope_(&empty_settings_) { |
| 207 empty_settings_.set_toolchain_label(Label()); |
| 208 } | 208 } |
| 209 | 209 |
| 210 Setup::~Setup() { | 210 Setup::~Setup() { |
| 211 } | 211 } |
| 212 | 212 |
| 213 bool Setup::DoSetup() { | 213 bool Setup::DoSetup() { |
| 214 CommandLine* cmdline = CommandLine::ForCurrentProcess(); | 214 CommandLine* cmdline = CommandLine::ForCurrentProcess(); |
| 215 | 215 |
| 216 scheduler_.set_verbose_logging(cmdline->HasSwitch(kSwitchVerbose)); | 216 scheduler_.set_verbose_logging(cmdline->HasSwitch(kSwitchVerbose)); |
| 217 if (cmdline->HasSwitch(kTimeSwitch) || | 217 if (cmdline->HasSwitch(kTimeSwitch) || |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 } | 429 } |
| 430 | 430 |
| 431 void DependentSetup::RunPreMessageLoop() { | 431 void DependentSetup::RunPreMessageLoop() { |
| 432 CommonSetup::RunPreMessageLoop(); | 432 CommonSetup::RunPreMessageLoop(); |
| 433 } | 433 } |
| 434 | 434 |
| 435 bool DependentSetup::RunPostMessageLoop() { | 435 bool DependentSetup::RunPostMessageLoop() { |
| 436 return CommonSetup::RunPostMessageLoop(); | 436 return CommonSetup::RunPostMessageLoop(); |
| 437 } | 437 } |
| 438 | 438 |
| OLD | NEW |