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 26 matching lines...) Expand all Loading... |
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_SOLINK, | 42 TYPE_SOLINK, |
43 TYPE_SOLINK_MODULE, | 43 TYPE_SOLINK_MODULE, |
44 TYPE_LINK, | 44 TYPE_LINK, |
45 TYPE_STAMP, | 45 TYPE_STAMP, |
46 TYPE_COPY, | 46 TYPE_COPY, |
| 47 TYPE_COPY_BUNDLE_DATA, |
| 48 TYPE_COMPILE_XCASSETS, |
47 | 49 |
48 TYPE_NUMTYPES // Must be last. | 50 TYPE_NUMTYPES // Must be last. |
49 }; | 51 }; |
50 | 52 |
51 static const char* kToolCc; | 53 static const char* kToolCc; |
52 static const char* kToolCxx; | 54 static const char* kToolCxx; |
53 static const char* kToolObjC; | 55 static const char* kToolObjC; |
54 static const char* kToolObjCxx; | 56 static const char* kToolObjCxx; |
55 static const char* kToolRc; | 57 static const char* kToolRc; |
56 static const char* kToolAsm; | 58 static const char* kToolAsm; |
57 static const char* kToolAlink; | 59 static const char* kToolAlink; |
58 static const char* kToolSolink; | 60 static const char* kToolSolink; |
59 static const char* kToolSolinkModule; | 61 static const char* kToolSolinkModule; |
60 static const char* kToolLink; | 62 static const char* kToolLink; |
61 static const char* kToolStamp; | 63 static const char* kToolStamp; |
62 static const char* kToolCopy; | 64 static const char* kToolCopy; |
| 65 static const char* kToolCopyBundleData; |
| 66 static const char* kToolCompileXCAssets; |
63 | 67 |
64 Toolchain(const Settings* settings, const Label& label); | 68 Toolchain(const Settings* settings, const Label& label); |
65 ~Toolchain() override; | 69 ~Toolchain() override; |
66 | 70 |
67 // Item overrides. | 71 // Item overrides. |
68 Toolchain* AsToolchain() override; | 72 Toolchain* AsToolchain() override; |
69 const Toolchain* AsToolchain() const override; | 73 const Toolchain* AsToolchain() const override; |
70 | 74 |
71 // Returns TYPE_NONE on failure. | 75 // Returns TYPE_NONE on failure. |
72 static ToolType ToolNameToType(const base::StringPiece& str); | 76 static ToolType ToolNameToType(const base::StringPiece& str); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool setup_complete_; | 126 bool setup_complete_; |
123 | 127 |
124 // Substitutions used by the tools in this toolchain. | 128 // Substitutions used by the tools in this toolchain. |
125 SubstitutionBits substitution_bits_; | 129 SubstitutionBits substitution_bits_; |
126 | 130 |
127 LabelTargetVector deps_; | 131 LabelTargetVector deps_; |
128 Scope::KeyValueMap args_; | 132 Scope::KeyValueMap args_; |
129 }; | 133 }; |
130 | 134 |
131 #endif // TOOLS_GN_TOOLCHAIN_H_ | 135 #endif // TOOLS_GN_TOOLCHAIN_H_ |
OLD | NEW |