OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
brettw
2016/01/08 23:51:50
The current copyright guidance has no "(c)".
(same
Tomasz Moniuszko
2016/01/21 10:50:03
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | |
6 #define TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/macros.h" | |
11 | |
12 class Builder; | |
13 class BuildSettings; | |
14 class Err; | |
15 struct ProjectConfiguration; | |
brettw
2016/01/08 23:51:50
I think this is too general a name to expose in th
Tomasz Moniuszko
2016/01/21 10:50:03
Done. ProjectConfiguration members are now a part
| |
16 class Target; | |
17 | |
18 class VisualStudioWriter { | |
19 public: | |
20 // On failure will populate |err| and return false. | |
21 static bool RunAndWriteFiles(const BuildSettings* build_settings, | |
22 Builder* builder, | |
23 Err* err); | |
24 | |
25 private: | |
26 explicit VisualStudioWriter(const BuildSettings* build_settings); | |
27 ~VisualStudioWriter(); | |
28 | |
29 bool WriteProjectFile(const Target* target, | |
30 const ProjectConfiguration& config, | |
31 Err* err) const; | |
32 bool WriteSolutionFile(const std::vector<const Target*>& targets) const; | |
33 | |
34 const BuildSettings* build_settings_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(VisualStudioWriter); | |
37 }; | |
38 | |
39 #endif // TOOLS_GN_VISUAL_STUDIO_WRITER_H_ | |
OLD | NEW |