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

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

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/toolchain.h ('k') | no next file » | 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 #include "tools/gn/toolchain.h" 5 #include "tools/gn/toolchain.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 10 matching lines...) Expand all
21 const char* Toolchain::kToolAlink = "alink"; 21 const char* Toolchain::kToolAlink = "alink";
22 const char* Toolchain::kToolSolink = "solink"; 22 const char* Toolchain::kToolSolink = "solink";
23 const char* Toolchain::kToolSolinkModule = "solink_module"; 23 const char* Toolchain::kToolSolinkModule = "solink_module";
24 const char* Toolchain::kToolLink = "link"; 24 const char* Toolchain::kToolLink = "link";
25 const char* Toolchain::kToolStamp = "stamp"; 25 const char* Toolchain::kToolStamp = "stamp";
26 const char* Toolchain::kToolCopy = "copy"; 26 const char* Toolchain::kToolCopy = "copy";
27 const char* Toolchain::kToolCopyBundleData = "copy_bundle_data"; 27 const char* Toolchain::kToolCopyBundleData = "copy_bundle_data";
28 const char* Toolchain::kToolCompileXCAssets = "compile_xcassets"; 28 const char* Toolchain::kToolCompileXCAssets = "compile_xcassets";
29 const char* Toolchain::kToolAction = "action"; 29 const char* Toolchain::kToolAction = "action";
30 30
31 Toolchain::Toolchain(const Settings* settings, const Label& label) 31 Toolchain::Toolchain(const Settings* settings,
32 : Item(settings, label), 32 const Label& label,
33 setup_complete_(false) { 33 const InputFileSet& input_files)
34 } 34 : Item(settings, label, input_files), setup_complete_(false) {}
35 35
36 Toolchain::~Toolchain() { 36 Toolchain::~Toolchain() {
37 } 37 }
38 38
39 Toolchain* Toolchain::AsToolchain() { 39 Toolchain* Toolchain::AsToolchain() {
40 return this; 40 return this;
41 } 41 }
42 42
43 const Toolchain* Toolchain::AsToolchain() const { 43 const Toolchain* Toolchain::AsToolchain() const {
44 return this; 44 return this;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 return TYPE_STAMP; 172 return TYPE_STAMP;
173 default: 173 default:
174 NOTREACHED(); 174 NOTREACHED();
175 return Toolchain::TYPE_NONE; 175 return Toolchain::TYPE_NONE;
176 } 176 }
177 } 177 }
178 178
179 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const { 179 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const {
180 return tools_[GetToolTypeForTargetFinalOutput(target)].get(); 180 return tools_[GetToolTypeForTargetFinalOutput(target)].get();
181 } 181 }
OLDNEW
« no previous file with comments | « tools/gn/toolchain.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698