[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / gn / source_file_type.h
blobc43b4324443e5184709390fd5bfb658fc6a5edfd
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
3 // found in the LICENSE file.
5 #ifndef TOOLS_GN_SOURCE_FILE_TYPE_H_
6 #define TOOLS_GN_SOURCE_FILE_TYPE_H_
8 class SourceFile;
10 // This should be sequential integers starting from 0 so they can be used as
11 // array indices.
12 enum SourceFileType {
13 SOURCE_UNKNOWN = 0,
14 SOURCE_ASM,
15 SOURCE_C,
16 SOURCE_CPP,
17 SOURCE_H,
18 SOURCE_M,
19 SOURCE_MM,
20 SOURCE_S,
21 SOURCE_RC,
22 SOURCE_O, // Object files can be inputs, too. Also counts .obj.
23 SOURCE_DEF,
25 // Must be last.
26 SOURCE_NUMTYPES,
29 SourceFileType GetSourceFileType(const SourceFile& file);
31 #endif // TOOLS_GN_SOURCE_FILE_TYPE_H_