| 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 #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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 static const char* kToolAlink; | 57 static const char* kToolAlink; |
| 58 static const char* kToolSolink; | 58 static const char* kToolSolink; |
| 59 static const char* kToolLink; | 59 static const char* kToolLink; |
| 60 static const char* kToolStamp; | 60 static const char* kToolStamp; |
| 61 static const char* kToolCopy; | 61 static const char* kToolCopy; |
| 62 | 62 |
| 63 Toolchain(const Settings* settings, const Label& label); | 63 Toolchain(const Settings* settings, const Label& label); |
| 64 virtual ~Toolchain(); | 64 virtual ~Toolchain(); |
| 65 | 65 |
| 66 // Item overrides. | 66 // Item overrides. |
| 67 virtual Toolchain* AsToolchain() OVERRIDE; | 67 virtual Toolchain* AsToolchain() override; |
| 68 virtual const Toolchain* AsToolchain() const OVERRIDE; | 68 virtual const Toolchain* AsToolchain() const override; |
| 69 | 69 |
| 70 // Returns TYPE_NONE on failure. | 70 // Returns TYPE_NONE on failure. |
| 71 static ToolType ToolNameToType(const base::StringPiece& str); | 71 static ToolType ToolNameToType(const base::StringPiece& str); |
| 72 static std::string ToolTypeToName(ToolType type); | 72 static std::string ToolTypeToName(ToolType type); |
| 73 | 73 |
| 74 // Returns null if the tool hasn't been defined. | 74 // Returns null if the tool hasn't been defined. |
| 75 const Tool* GetTool(ToolType type) const; | 75 const Tool* GetTool(ToolType type) const; |
| 76 | 76 |
| 77 // Set a tool. When all tools are configured, you should call | 77 // Set a tool. When all tools are configured, you should call |
| 78 // ToolchainSetupComplete(). | 78 // ToolchainSetupComplete(). |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 bool setup_complete_; | 121 bool setup_complete_; |
| 122 | 122 |
| 123 // Substitutions used by the tools in this toolchain. | 123 // Substitutions used by the tools in this toolchain. |
| 124 SubstitutionBits substitution_bits_; | 124 SubstitutionBits substitution_bits_; |
| 125 | 125 |
| 126 LabelTargetVector deps_; | 126 LabelTargetVector deps_; |
| 127 Scope::KeyValueMap args_; | 127 Scope::KeyValueMap args_; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 #endif // TOOLS_GN_TOOLCHAIN_H_ | 130 #endif // TOOLS_GN_TOOLCHAIN_H_ |
| OLD | NEW |