Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Side by Side Diff: tools/gn/tool.h

Issue 1292983004: [GN]: Precompiled header support for GCC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/substitution_type.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « tools/gn/substitution_type.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698