Landing Recent QUIC changes until 8/19/2015 17:00 UTC.
[chromium-blink-merge.git] / tools / gn / tool.cc
blob139c03294c3bd9499c90acca654ad9ef0bf7bc57
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
3 // found in the LICENSE file.
5 #include "tools/gn/tool.h"
7 Tool::Tool()
8 : depsformat_(DEPS_GCC),
9 precompiled_header_type_(PCH_NONE),
10 restat_(false),
11 complete_(false) {
14 Tool::~Tool() {
17 void Tool::SetComplete() {
18 DCHECK(!complete_);
19 complete_ = true;
21 command_.FillRequiredTypes(&substitution_bits_);
22 depfile_.FillRequiredTypes(&substitution_bits_);
23 description_.FillRequiredTypes(&substitution_bits_);
24 outputs_.FillRequiredTypes(&substitution_bits_);
25 link_output_.FillRequiredTypes(&substitution_bits_);
26 depend_output_.FillRequiredTypes(&substitution_bits_);
27 rspfile_.FillRequiredTypes(&substitution_bits_);
28 rspfile_content_.FillRequiredTypes(&substitution_bits_);