| 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/strings/string_piece.h" | 9 #include "base/strings/string_piece.h" |
| 10 #include "tools/gn/item.h" | 10 #include "tools/gn/item.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static const char* kToolLink; | 54 static const char* kToolLink; |
| 55 static const char* kToolStamp; | 55 static const char* kToolStamp; |
| 56 static const char* kToolCopy; | 56 static const char* kToolCopy; |
| 57 | 57 |
| 58 struct Tool { | 58 struct Tool { |
| 59 Tool(); | 59 Tool(); |
| 60 ~Tool(); | 60 ~Tool(); |
| 61 | 61 |
| 62 std::string command; | 62 std::string command; |
| 63 std::string depfile; | 63 std::string depfile; |
| 64 std::string deps; | 64 std::string depsformat; |
| 65 std::string description; | 65 std::string description; |
| 66 std::string lib_dir_prefix; | 66 std::string lib_dir_prefix; |
| 67 std::string lib_prefix; | 67 std::string lib_prefix; |
| 68 std::string pool; | 68 std::string pool; |
| 69 std::string restat; | 69 std::string restat; |
| 70 std::string rspfile; | 70 std::string rspfile; |
| 71 std::string rspfile_content; | 71 std::string rspfile_content; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 Toolchain(const Settings* settings, const Label& label); | 74 Toolchain(const Settings* settings, const Label& label); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 97 const Scope::KeyValueMap& args() const { return args_; } | 97 const Scope::KeyValueMap& args() const { return args_; } |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 Tool tools_[TYPE_NUMTYPES]; | 100 Tool tools_[TYPE_NUMTYPES]; |
| 101 | 101 |
| 102 LabelTargetVector deps_; | 102 LabelTargetVector deps_; |
| 103 Scope::KeyValueMap args_; | 103 Scope::KeyValueMap args_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // TOOLS_GN_TOOLCHAIN_H_ | 106 #endif // TOOLS_GN_TOOLCHAIN_H_ |
| OLD | NEW |