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

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

Issue 216903004: Add optional public header checking to GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/commands.cc ('k') | tools/gn/filesystem_utils.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 (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_FILESYSTEM_UTILS_H_ 5 #ifndef TOOLS_GN_FILESYSTEM_UTILS_H_
6 #define TOOLS_GN_FILESYSTEM_UTILS_H_ 6 #define TOOLS_GN_FILESYSTEM_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 10 matching lines...) Expand all
21 SOURCE_ASM, 21 SOURCE_ASM,
22 SOURCE_C, 22 SOURCE_C,
23 SOURCE_CC, 23 SOURCE_CC,
24 SOURCE_H, 24 SOURCE_H,
25 SOURCE_M, 25 SOURCE_M,
26 SOURCE_MM, 26 SOURCE_MM,
27 SOURCE_S, 27 SOURCE_S,
28 SOURCE_RC, 28 SOURCE_RC,
29 }; 29 };
30 30
31 SourceFileType GetSourceFileType(const SourceFile& file, 31 SourceFileType GetSourceFileType(const SourceFile& file);
32 Settings::TargetOS os);
33 32
34 // Returns the extension, not including the dot, for the given file type on the 33 // Returns the extension, not including the dot, for the given file type on the
35 // given system. 34 // given system.
36 // 35 //
37 // Some targets make multiple files (like a .dll and an import library). This 36 // Some targets make multiple files (like a .dll and an import library). This
38 // function returns the name of the file other targets should depend on and 37 // function returns the name of the file other targets should depend on and
39 // link to (so in this example, the import library). 38 // link to (so in this example, the import library).
40 const char* GetExtensionForOutputType(Target::OutputType type, 39 const char* GetExtensionForOutputType(Target::OutputType type,
41 Settings::TargetOS os); 40 Settings::TargetOS os);
42 41
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SourceDir GetOutputDirForSourceDir(const Settings* settings, 169 SourceDir GetOutputDirForSourceDir(const Settings* settings,
171 const SourceDir& source_dir); 170 const SourceDir& source_dir);
172 SourceDir GetGenDirForSourceDir(const Settings* settings, 171 SourceDir GetGenDirForSourceDir(const Settings* settings,
173 const SourceDir& source_dir); 172 const SourceDir& source_dir);
174 SourceDir GetTargetOutputDir(const Target* target); 173 SourceDir GetTargetOutputDir(const Target* target);
175 SourceDir GetTargetGenDir(const Target* target); 174 SourceDir GetTargetGenDir(const Target* target);
176 SourceDir GetCurrentOutputDir(const Scope* scope); 175 SourceDir GetCurrentOutputDir(const Scope* scope);
177 SourceDir GetCurrentGenDir(const Scope* scope); 176 SourceDir GetCurrentGenDir(const Scope* scope);
178 177
179 #endif // TOOLS_GN_FILESYSTEM_UTILS_H_ 178 #endif // TOOLS_GN_FILESYSTEM_UTILS_H_
OLDNEW
« no previous file with comments | « tools/gn/commands.cc ('k') | tools/gn/filesystem_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698