| OLD | NEW | 
|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_VISUAL_STUDIO_WRITER_H_ | 5 #ifndef TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | 
| 6 #define TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | 6 #define TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | 
| 7 | 7 | 
| 8 #include <iosfwd> | 8 #include <iosfwd> | 
| 9 #include <string> | 9 #include <string> | 
| 10 #include <vector> | 10 #include <vector> | 
| 11 | 11 | 
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" | 
| 13 #include "base/macros.h" | 13 #include "base/macros.h" | 
|  | 14 #include "tools/gn/path_output.h" | 
| 14 | 15 | 
| 15 namespace base { | 16 namespace base { | 
| 16 class FilePath; | 17 class FilePath; | 
| 17 } | 18 } | 
| 18 | 19 | 
| 19 class Builder; | 20 class Builder; | 
| 20 class BuildSettings; | 21 class BuildSettings; | 
| 21 class Err; | 22 class Err; | 
| 22 class Target; | 23 class Target; | 
| 23 | 24 | 
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 84                                 Err* err); | 85                                 Err* err); | 
| 85   void WriteFiltersFileContents(std::ostream& out, const Target* target); | 86   void WriteFiltersFileContents(std::ostream& out, const Target* target); | 
| 86   bool WriteSolutionFile(Err* err); | 87   bool WriteSolutionFile(Err* err); | 
| 87   void WriteSolutionFileContents(std::ostream& out, | 88   void WriteSolutionFileContents(std::ostream& out, | 
| 88                                  const base::FilePath& solution_dir_path); | 89                                  const base::FilePath& solution_dir_path); | 
| 89 | 90 | 
| 90   // Resolves all solution folders (parent folders for projects) into |folders_| | 91   // Resolves all solution folders (parent folders for projects) into |folders_| | 
| 91   // and updates |root_folder_dir_|. Also sets |parent_folder| for |projects_|. | 92   // and updates |root_folder_dir_|. Also sets |parent_folder| for |projects_|. | 
| 92   void ResolveSolutionFolders(); | 93   void ResolveSolutionFolders(); | 
| 93 | 94 | 
|  | 95   std::string GetNinjaTarget(const Target* target); | 
|  | 96 | 
| 94   const BuildSettings* build_settings_; | 97   const BuildSettings* build_settings_; | 
| 95 | 98 | 
| 96   // Toolset version. | 99   // Toolset version. | 
| 97   const char* toolset_version_; | 100   const char* toolset_version_; | 
| 98 | 101 | 
| 99   // Project version. | 102   // Project version. | 
| 100   const char* project_version_; | 103   const char* project_version_; | 
| 101 | 104 | 
| 102   // Visual Studio version string. | 105   // Visual Studio version string. | 
| 103   const char* version_string_; | 106   const char* version_string_; | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 114 | 117 | 
| 115   // Absolute root solution folder path. | 118   // Absolute root solution folder path. | 
| 116   std::string root_folder_path_; | 119   std::string root_folder_path_; | 
| 117 | 120 | 
| 118   // Folders for all solution projects. | 121   // Folders for all solution projects. | 
| 119   SolutionFolders folders_; | 122   SolutionFolders folders_; | 
| 120 | 123 | 
| 121   // Semicolon-separated Windows SDK include directories. | 124   // Semicolon-separated Windows SDK include directories. | 
| 122   std::string windows_kits_include_dirs_; | 125   std::string windows_kits_include_dirs_; | 
| 123 | 126 | 
|  | 127   // Path formatter for ninja targets. | 
|  | 128   PathOutput ninja_path_output_; | 
|  | 129 | 
| 124   DISALLOW_COPY_AND_ASSIGN(VisualStudioWriter); | 130   DISALLOW_COPY_AND_ASSIGN(VisualStudioWriter); | 
| 125 }; | 131 }; | 
| 126 | 132 | 
| 127 #endif  // TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | 133 #endif  // TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | 
| OLD | NEW | 
|---|