| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 | 119 |
| 120 const SubstitutionPattern& depend_output() const { | 120 const SubstitutionPattern& depend_output() const { |
| 121 return depend_output_; | 121 return depend_output_; |
| 122 } | 122 } |
| 123 void set_depend_output(const SubstitutionPattern& dep_out) { | 123 void set_depend_output(const SubstitutionPattern& dep_out) { |
| 124 DCHECK(!complete_); | 124 DCHECK(!complete_); |
| 125 depend_output_ = dep_out; | 125 depend_output_ = dep_out; |
| 126 } | 126 } |
| 127 | 127 |
| 128 const SubstitutionPattern& runtime_link_output() const { |
| 129 return runtime_link_output_; |
| 130 } |
| 131 void set_runtime_link_output(const SubstitutionPattern& run_out) { |
| 132 DCHECK(!complete_); |
| 133 runtime_link_output_ = run_out; |
| 134 } |
| 135 |
| 128 const std::string& output_prefix() const { | 136 const std::string& output_prefix() const { |
| 129 return output_prefix_; | 137 return output_prefix_; |
| 130 } | 138 } |
| 131 void set_output_prefix(const std::string& s) { | 139 void set_output_prefix(const std::string& s) { |
| 132 DCHECK(!complete_); | 140 DCHECK(!complete_); |
| 133 output_prefix_ = s; | 141 output_prefix_ = s; |
| 134 } | 142 } |
| 135 | 143 |
| 136 bool restat() const { | 144 bool restat() const { |
| 137 return restat_; | 145 return restat_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 std::string default_output_extension_; | 188 std::string default_output_extension_; |
| 181 SubstitutionPattern depfile_; | 189 SubstitutionPattern depfile_; |
| 182 DepsFormat depsformat_; | 190 DepsFormat depsformat_; |
| 183 PrecompiledHeaderType precompiled_header_type_; | 191 PrecompiledHeaderType precompiled_header_type_; |
| 184 SubstitutionPattern description_; | 192 SubstitutionPattern description_; |
| 185 std::string lib_switch_; | 193 std::string lib_switch_; |
| 186 std::string lib_dir_switch_; | 194 std::string lib_dir_switch_; |
| 187 SubstitutionList outputs_; | 195 SubstitutionList outputs_; |
| 188 SubstitutionPattern link_output_; | 196 SubstitutionPattern link_output_; |
| 189 SubstitutionPattern depend_output_; | 197 SubstitutionPattern depend_output_; |
| 198 SubstitutionPattern runtime_link_output_; |
| 190 std::string output_prefix_; | 199 std::string output_prefix_; |
| 191 bool restat_; | 200 bool restat_; |
| 192 SubstitutionPattern rspfile_; | 201 SubstitutionPattern rspfile_; |
| 193 SubstitutionPattern rspfile_content_; | 202 SubstitutionPattern rspfile_content_; |
| 194 | 203 |
| 195 bool complete_; | 204 bool complete_; |
| 196 | 205 |
| 197 SubstitutionBits substitution_bits_; | 206 SubstitutionBits substitution_bits_; |
| 198 | 207 |
| 199 DISALLOW_COPY_AND_ASSIGN(Tool); | 208 DISALLOW_COPY_AND_ASSIGN(Tool); |
| 200 }; | 209 }; |
| 201 | 210 |
| 202 #endif // TOOLS_GN_TOOL_H_ | 211 #endif // TOOLS_GN_TOOL_H_ |
| OLD | NEW |