| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |