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

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

Issue 2738823002: Gn: Add support to generate Visual Studio 2017 solutions. (Closed)
Patch Set: Fix of default version Created 3 years, 9 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/command_gen.cc ('k') | tools/gn/visual_studio_writer.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 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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 class Builder; 21 class Builder;
22 class BuildSettings; 22 class BuildSettings;
23 class Err; 23 class Err;
24 class SourceFile; 24 class SourceFile;
25 class Target; 25 class Target;
26 26
27 class VisualStudioWriter { 27 class VisualStudioWriter {
28 public: 28 public:
29 enum Version { 29 enum Version {
30 Vs2013 = 1, // Visual Studio 2013 30 Vs2013 = 1, // Visual Studio 2013
31 Vs2015 // Visual Studio 2015 31 Vs2015, // Visual Studio 2015
32 Vs2017 // Visual Studio 2017
32 }; 33 };
33 34
34 // Writes Visual Studio project and solution files. |sln_name| is the optional 35 // Writes Visual Studio project and solution files. |sln_name| is the optional
35 // solution file name ("all" is used if not specified). |filters| is optional 36 // solution file name ("all" is used if not specified). |filters| is optional
36 // semicolon-separated list of label patterns used to limit the set of 37 // semicolon-separated list of label patterns used to limit the set of
37 // generated projects. Only matching targets and their dependencies (unless 38 // generated projects. Only matching targets and their dependencies (unless
38 // |no_deps| is true) will be included to the solution. On failure will 39 // |no_deps| is true) will be included to the solution. On failure will
39 // populate |err| and will return false. 40 // populate |err| and will return false.
40 static bool RunAndWriteFiles(const BuildSettings* build_settings, 41 static bool RunAndWriteFiles(const BuildSettings* build_settings,
41 const Builder& builder, 42 const Builder& builder,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Semicolon-separated Windows SDK include directories. 147 // Semicolon-separated Windows SDK include directories.
147 std::string windows_kits_include_dirs_; 148 std::string windows_kits_include_dirs_;
148 149
149 // Path formatter for ninja targets. 150 // Path formatter for ninja targets.
150 PathOutput ninja_path_output_; 151 PathOutput ninja_path_output_;
151 152
152 DISALLOW_COPY_AND_ASSIGN(VisualStudioWriter); 153 DISALLOW_COPY_AND_ASSIGN(VisualStudioWriter);
153 }; 154 };
154 155
155 #endif // TOOLS_GN_VISUAL_STUDIO_WRITER_H_ 156 #endif // TOOLS_GN_VISUAL_STUDIO_WRITER_H_
OLDNEW
« no previous file with comments | « tools/gn/command_gen.cc ('k') | tools/gn/visual_studio_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698