OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TOOL_H_ | 5 #ifndef TOOLS_GN_TOOL_H_ |
6 #define TOOLS_GN_TOOL_H_ | 6 #define TOOLS_GN_TOOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "tools/gn/substitution_list.h" | 12 #include "tools/gn/substitution_list.h" |
13 #include "tools/gn/substitution_pattern.h" | 13 #include "tools/gn/substitution_pattern.h" |
14 | 14 |
15 class Tool { | 15 class Tool { |
16 public: | 16 public: |
17 enum DepsFormat { | 17 enum DepsFormat { |
18 DEPS_GCC = 0, | 18 DEPS_GCC = 0, |
19 DEPS_MSVC = 1 | 19 DEPS_MSVC = 1 |
20 }; | 20 }; |
21 | 21 |
22 enum PrecompiledHeaderType { | 22 enum PrecompiledHeaderType { |
23 PCH_NONE = 0, | 23 PCH_NONE = 0, |
24 PCH_MSVC = 1 | 24 PCH_GCC = 1, |
| 25 PCH_MSVC = 2 |
25 }; | 26 }; |
26 | 27 |
27 Tool(); | 28 Tool(); |
28 ~Tool(); | 29 ~Tool(); |
29 | 30 |
30 // Getters/setters ---------------------------------------------------------- | 31 // Getters/setters ---------------------------------------------------------- |
31 // | 32 // |
32 // After the tool has had its attributes set, the caller must call | 33 // After the tool has had its attributes set, the caller must call |
33 // SetComplete(), at which point no other changes can be made. | 34 // SetComplete(), at which point no other changes can be made. |
34 | 35 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 SubstitutionPattern rspfile_content_; | 193 SubstitutionPattern rspfile_content_; |
193 | 194 |
194 bool complete_; | 195 bool complete_; |
195 | 196 |
196 SubstitutionBits substitution_bits_; | 197 SubstitutionBits substitution_bits_; |
197 | 198 |
198 DISALLOW_COPY_AND_ASSIGN(Tool); | 199 DISALLOW_COPY_AND_ASSIGN(Tool); |
199 }; | 200 }; |
200 | 201 |
201 #endif // TOOLS_GN_TOOL_H_ | 202 #endif // TOOLS_GN_TOOL_H_ |
OLD | NEW |