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/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 enum ToolType { | 33 enum ToolType { |
34 TYPE_NONE = 0, | 34 TYPE_NONE = 0, |
35 TYPE_CC, | 35 TYPE_CC, |
36 TYPE_CXX, | 36 TYPE_CXX, |
37 TYPE_OBJC, | 37 TYPE_OBJC, |
38 TYPE_OBJCXX, | 38 TYPE_OBJCXX, |
39 TYPE_RC, | 39 TYPE_RC, |
40 TYPE_ASM, | 40 TYPE_ASM, |
41 TYPE_ALINK, | 41 TYPE_ALINK, |
| 42 TYPE_DYLINK, |
42 TYPE_SOLINK, | 43 TYPE_SOLINK, |
43 TYPE_LINK, | 44 TYPE_LINK, |
44 TYPE_STAMP, | 45 TYPE_STAMP, |
45 TYPE_COPY, | 46 TYPE_COPY, |
46 | 47 |
47 TYPE_NUMTYPES // Must be last. | 48 TYPE_NUMTYPES // Must be last. |
48 }; | 49 }; |
49 | 50 |
50 static const char* kToolCc; | 51 static const char* kToolCc; |
51 static const char* kToolCxx; | 52 static const char* kToolCxx; |
52 static const char* kToolObjC; | 53 static const char* kToolObjC; |
53 static const char* kToolObjCxx; | 54 static const char* kToolObjCxx; |
54 static const char* kToolRc; | 55 static const char* kToolRc; |
55 static const char* kToolAsm; | 56 static const char* kToolAsm; |
56 static const char* kToolAlink; | 57 static const char* kToolAlink; |
| 58 static const char* kToolDylink; |
57 static const char* kToolSolink; | 59 static const char* kToolSolink; |
58 static const char* kToolLink; | 60 static const char* kToolLink; |
59 static const char* kToolStamp; | 61 static const char* kToolStamp; |
60 static const char* kToolCopy; | 62 static const char* kToolCopy; |
61 | 63 |
62 Toolchain(const Settings* settings, const Label& label); | 64 Toolchain(const Settings* settings, const Label& label); |
63 ~Toolchain() override; | 65 ~Toolchain() override; |
64 | 66 |
65 // Item overrides. | 67 // Item overrides. |
66 Toolchain* AsToolchain() override; | 68 Toolchain* AsToolchain() override; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool setup_complete_; | 122 bool setup_complete_; |
121 | 123 |
122 // Substitutions used by the tools in this toolchain. | 124 // Substitutions used by the tools in this toolchain. |
123 SubstitutionBits substitution_bits_; | 125 SubstitutionBits substitution_bits_; |
124 | 126 |
125 LabelTargetVector deps_; | 127 LabelTargetVector deps_; |
126 Scope::KeyValueMap args_; | 128 Scope::KeyValueMap args_; |
127 }; | 129 }; |
128 | 130 |
129 #endif // TOOLS_GN_TOOLCHAIN_H_ | 131 #endif // TOOLS_GN_TOOLCHAIN_H_ |
OLD | NEW |