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

Unified Diff: tools/gn/visual_studio_writer.h

Issue 1570113002: Visual Studio generators for GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools/gn/visual_studio_writer.h
diff --git a/tools/gn/visual_studio_writer.h b/tools/gn/visual_studio_writer.h
new file mode 100644
index 0000000000000000000000000000000000000000..ab317718eb4d66585dcfcd28c6f9b6bb31dd4a70
--- /dev/null
+++ b/tools/gn/visual_studio_writer.h
@@ -0,0 +1,39 @@
+// 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.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TOOLS_GN_VISUAL_STUDIO_WRITER_H_
+#define TOOLS_GN_VISUAL_STUDIO_WRITER_H_
+
+#include <vector>
+
+#include "base/macros.h"
+
+class Builder;
+class BuildSettings;
+class Err;
+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
+class Target;
+
+class VisualStudioWriter {
+ public:
+ // On failure will populate |err| and return false.
+ static bool RunAndWriteFiles(const BuildSettings* build_settings,
+ Builder* builder,
+ Err* err);
+
+ private:
+ explicit VisualStudioWriter(const BuildSettings* build_settings);
+ ~VisualStudioWriter();
+
+ bool WriteProjectFile(const Target* target,
+ const ProjectConfiguration& config,
+ Err* err) const;
+ bool WriteSolutionFile(const std::vector<const Target*>& targets) const;
+
+ const BuildSettings* build_settings_;
+
+ DISALLOW_COPY_AND_ASSIGN(VisualStudioWriter);
+};
+
+#endif // TOOLS_GN_VISUAL_STUDIO_WRITER_H_

Powered by Google App Engine
This is Rietveld 408576698