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 #ifndef TOOLS_GN_TOOL_H_ | 5 #ifndef TOOLS_GN_TOOL_H_ |
6 #define TOOLS_GN_TOOL_H_ | 6 #define TOOLS_GN_TOOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 const std::string& output_prefix() const { | 115 const std::string& output_prefix() const { |
116 return output_prefix_; | 116 return output_prefix_; |
117 } | 117 } |
118 void set_output_prefix(const std::string& s) { | 118 void set_output_prefix(const std::string& s) { |
119 DCHECK(!complete_); | 119 DCHECK(!complete_); |
120 output_prefix_ = s; | 120 output_prefix_ = s; |
121 } | 121 } |
122 | 122 |
123 const std::string& pool() const { | |
124 return pool_; | |
125 } | |
126 void set_pool(const std::string& s) { | |
127 DCHECK(!complete_); | |
128 pool_ = s; | |
129 } | |
130 | |
131 bool restat() const { | 123 bool restat() const { |
132 return restat_; | 124 return restat_; |
133 } | 125 } |
134 void set_restat(bool r) { | 126 void set_restat(bool r) { |
135 DCHECK(!complete_); | 127 DCHECK(!complete_); |
136 restat_ = r; | 128 restat_ = r; |
137 } | 129 } |
138 | 130 |
139 const SubstitutionPattern& rspfile() const { | 131 const SubstitutionPattern& rspfile() const { |
140 return rspfile_; | 132 return rspfile_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 std::string default_output_extension_; | 167 std::string default_output_extension_; |
176 SubstitutionPattern depfile_; | 168 SubstitutionPattern depfile_; |
177 DepsFormat depsformat_; | 169 DepsFormat depsformat_; |
178 SubstitutionPattern description_; | 170 SubstitutionPattern description_; |
179 std::string lib_switch_; | 171 std::string lib_switch_; |
180 std::string lib_dir_switch_; | 172 std::string lib_dir_switch_; |
181 SubstitutionList outputs_; | 173 SubstitutionList outputs_; |
182 SubstitutionPattern link_output_; | 174 SubstitutionPattern link_output_; |
183 SubstitutionPattern depend_output_; | 175 SubstitutionPattern depend_output_; |
184 std::string output_prefix_; | 176 std::string output_prefix_; |
185 std::string pool_; | |
186 bool restat_; | 177 bool restat_; |
187 SubstitutionPattern rspfile_; | 178 SubstitutionPattern rspfile_; |
188 SubstitutionPattern rspfile_content_; | 179 SubstitutionPattern rspfile_content_; |
189 | 180 |
190 bool complete_; | 181 bool complete_; |
191 | 182 |
192 SubstitutionBits substitution_bits_; | 183 SubstitutionBits substitution_bits_; |
193 | 184 |
194 DISALLOW_COPY_AND_ASSIGN(Tool); | 185 DISALLOW_COPY_AND_ASSIGN(Tool); |
195 }; | 186 }; |
196 | 187 |
197 #endif // TOOLS_GN_TOOL_H_ | 188 #endif // TOOLS_GN_TOOL_H_ |
OLD | NEW |