| Index: tools/gn/action_target_generator.cc
|
| diff --git a/tools/gn/action_target_generator.cc b/tools/gn/action_target_generator.cc
|
| index 3cd4e4756fb038a5ad1d941da9b149c93a7320f2..40523fe08b94ecd12bf00cf4dac9ee1994f74db4 100644
|
| --- a/tools/gn/action_target_generator.cc
|
| +++ b/tools/gn/action_target_generator.cc
|
| @@ -54,6 +54,9 @@ void ActionTargetGenerator::DoRun() {
|
| if (!FillDepfile())
|
| return;
|
|
|
| + if (!FillConsole())
|
| + return;
|
| +
|
| if (!FillCheckIncludes())
|
| return;
|
|
|
| @@ -107,6 +110,16 @@ bool ActionTargetGenerator::FillDepfile() {
|
| return true;
|
| }
|
|
|
| +bool ActionTargetGenerator::FillConsole() {
|
| + const Value* value = scope_->GetValue(variables::kConsole, true);
|
| + if (!value)
|
| + return true;
|
| + if (!value->VerifyTypeIs(Value::BOOLEAN, err_))
|
| + return false;
|
| + target_->action_values().set_console(value->boolean_value());
|
| + return true;
|
| +}
|
| +
|
| bool ActionTargetGenerator::CheckOutputs() {
|
| const SubstitutionList& outputs = target_->action_values().outputs();
|
| if (outputs.list().empty()) {
|
|
|