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

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

Issue 1690843002: gn: Add runtime_link_output to tool("solib") (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: e Created 4 years, 10 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/runtime_deps.cc ('k') | tools/gn/target.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_TARGET_H_ 5 #ifndef TOOLS_GN_TARGET_H_
6 #define TOOLS_GN_TARGET_H_ 6 #define TOOLS_GN_TARGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // 250 //
251 // These are only known once the target is resolved and will be empty before 251 // These are only known once the target is resolved and will be empty before
252 // that. This is a cache of the files to prevent every target that depends on 252 // that. This is a cache of the files to prevent every target that depends on
253 // a given library from recomputing the same pattern. 253 // a given library from recomputing the same pattern.
254 const OutputFile& link_output_file() const { 254 const OutputFile& link_output_file() const {
255 return link_output_file_; 255 return link_output_file_;
256 } 256 }
257 const OutputFile& dependency_output_file() const { 257 const OutputFile& dependency_output_file() const {
258 return dependency_output_file_; 258 return dependency_output_file_;
259 } 259 }
260 const OutputFile& runtime_link_output_file() const {
261 return runtime_link_output_file_;
262 }
260 263
261 // Computes the set of output files resulting from compiling the given source 264 // Computes the set of output files resulting from compiling the given source
262 // file. If the file can be compiled and the tool exists, fills the outputs 265 // file. If the file can be compiled and the tool exists, fills the outputs
263 // in and writes the tool type to computed_tool_type. If the file is not 266 // in and writes the tool type to computed_tool_type. If the file is not
264 // compilable, returns false. 267 // compilable, returns false.
265 // 268 //
266 // The function can succeed with a "NONE" tool type for object files which 269 // The function can succeed with a "NONE" tool type for object files which
267 // are just passed to the output. The output will always be overwritten, not 270 // are just passed to the output. The output will always be overwritten, not
268 // appended to. 271 // appended to.
269 bool GetOutputFilesForSource(const SourceFile& source, 272 bool GetOutputFilesForSource(const SourceFile& source,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // Used for action[_foreach] targets. 346 // Used for action[_foreach] targets.
344 ActionValues action_values_; 347 ActionValues action_values_;
345 348
346 // Toolchain used by this target. Null until target is resolved. 349 // Toolchain used by this target. Null until target is resolved.
347 const Toolchain* toolchain_; 350 const Toolchain* toolchain_;
348 351
349 // Output files. Empty until the target is resolved. 352 // Output files. Empty until the target is resolved.
350 std::vector<OutputFile> computed_outputs_; 353 std::vector<OutputFile> computed_outputs_;
351 OutputFile link_output_file_; 354 OutputFile link_output_file_;
352 OutputFile dependency_output_file_; 355 OutputFile dependency_output_file_;
356 OutputFile runtime_link_output_file_;
353 357
354 DISALLOW_COPY_AND_ASSIGN(Target); 358 DISALLOW_COPY_AND_ASSIGN(Target);
355 }; 359 };
356 360
357 #endif // TOOLS_GN_TARGET_H_ 361 #endif // TOOLS_GN_TARGET_H_
OLDNEW
« no previous file with comments | « tools/gn/runtime_deps.cc ('k') | tools/gn/target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698