Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Side by Side Diff: tools/gn/tool.h

Issue 508763002: Hook up link pools in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default to 0 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/ninja_writer.cc ('k') | tools/gn/toolchain.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « tools/gn/ninja_writer.cc ('k') | tools/gn/toolchain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698