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

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

Issue 1207903002: Windows precompiled header support in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scott's grammar nits Created 5 years, 5 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/path_output.cc ('k') | tools/gn/source_file_type.cc » ('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_SOURCE_FILE_TYPE_H_ 5 #ifndef TOOLS_GN_SOURCE_FILE_TYPE_H_
6 #define TOOLS_GN_SOURCE_FILE_TYPE_H_ 6 #define TOOLS_GN_SOURCE_FILE_TYPE_H_
7 7
8 class SourceFile; 8 class SourceFile;
9 9
10 // This should be sequential integers starting from 0 so they can be used as
11 // array indices.
10 enum SourceFileType { 12 enum SourceFileType {
11 SOURCE_UNKNOWN, 13 SOURCE_UNKNOWN = 0,
12 SOURCE_ASM, 14 SOURCE_ASM,
13 SOURCE_C, 15 SOURCE_C,
14 SOURCE_CC, 16 SOURCE_CPP,
15 SOURCE_H, 17 SOURCE_H,
16 SOURCE_M, 18 SOURCE_M,
17 SOURCE_MM, 19 SOURCE_MM,
18 SOURCE_S, 20 SOURCE_S,
19 SOURCE_RC, 21 SOURCE_RC,
20 SOURCE_O, // Object files can be inputs, too. Also counts .obj. 22 SOURCE_O, // Object files can be inputs, too. Also counts .obj.
21 SOURCE_DEF, 23 SOURCE_DEF,
24
25 // Must be last.
26 SOURCE_NUMTYPES,
22 }; 27 };
23 28
24 SourceFileType GetSourceFileType(const SourceFile& file); 29 SourceFileType GetSourceFileType(const SourceFile& file);
25 30
26 #endif // TOOLS_GN_SOURCE_FILE_TYPE_H_ 31 #endif // TOOLS_GN_SOURCE_FILE_TYPE_H_
OLDNEW
« no previous file with comments | « tools/gn/path_output.cc ('k') | tools/gn/source_file_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698