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

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

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 5 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/test_with_scope.cc ('k') | tools/gn/toolchain.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_TOOLCHAIN_H_ 5 #ifndef TOOLS_GN_TOOLCHAIN_H_
6 #define TOOLS_GN_TOOLCHAIN_H_ 6 #define TOOLS_GN_TOOLCHAIN_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // The Settings of an Item is always the context in which the Item was 71 // The Settings of an Item is always the context in which the Item was
72 // defined. For a toolchain this is confusing because this is NOT the 72 // defined. For a toolchain this is confusing because this is NOT the
73 // settings object that applies to the things in the toolchain. 73 // settings object that applies to the things in the toolchain.
74 // 74 //
75 // To get the Settings object corresponding to objects loaded in the context 75 // To get the Settings object corresponding to objects loaded in the context
76 // of this toolchain (probably what you want instead), see 76 // of this toolchain (probably what you want instead), see
77 // Loader::GetToolchainSettings(). Many toolchain objects may be created in a 77 // Loader::GetToolchainSettings(). Many toolchain objects may be created in a
78 // given build, but only a few might be used, and the Loader is in charge of 78 // given build, but only a few might be used, and the Loader is in charge of
79 // this process. 79 // this process.
80 Toolchain(const Settings* settings, const Label& label); 80 Toolchain(const Settings* settings,
81 const Label& label,
82 const InputFileSet& input_files);
81 ~Toolchain() override; 83 ~Toolchain() override;
82 84
83 // Item overrides. 85 // Item overrides.
84 Toolchain* AsToolchain() override; 86 Toolchain* AsToolchain() override;
85 const Toolchain* AsToolchain() const override; 87 const Toolchain* AsToolchain() const override;
86 88
87 // Returns TYPE_NONE on failure. 89 // Returns TYPE_NONE on failure.
88 static ToolType ToolNameToType(const base::StringPiece& str); 90 static ToolType ToolNameToType(const base::StringPiece& str);
89 static std::string ToolTypeToName(ToolType type); 91 static std::string ToolTypeToName(ToolType type);
90 92
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 bool setup_complete_; 134 bool setup_complete_;
133 135
134 // Substitutions used by the tools in this toolchain. 136 // Substitutions used by the tools in this toolchain.
135 SubstitutionBits substitution_bits_; 137 SubstitutionBits substitution_bits_;
136 138
137 LabelTargetVector deps_; 139 LabelTargetVector deps_;
138 Scope::KeyValueMap args_; 140 Scope::KeyValueMap args_;
139 }; 141 };
140 142
141 #endif // TOOLS_GN_TOOLCHAIN_H_ 143 #endif // TOOLS_GN_TOOLCHAIN_H_
OLDNEW
« no previous file with comments | « tools/gn/test_with_scope.cc ('k') | tools/gn/toolchain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698