OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |