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

Unified Diff: tools/gn/visual_studio_utils.h

Issue 2428013002: Setting "SubSystem" option on "Link" page for Visual Studio project. (Closed)
Patch Set: Fixed missed space indent Created 4 years, 2 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
« no previous file with comments | « no previous file | tools/gn/visual_studio_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/visual_studio_utils.h
diff --git a/tools/gn/visual_studio_utils.h b/tools/gn/visual_studio_utils.h
index b91b2183741450beacdf1c0bb7229df86aa677f7..319428fbc135b65deed0500762cc0d72dcd8b85f 100644
--- a/tools/gn/visual_studio_utils.h
+++ b/tools/gn/visual_studio_utils.h
@@ -24,6 +24,16 @@ struct CompilerOptions {
std::string warning_level;
};
+// Some linker options which will be written to project file. We don't need to
+// specify all options because generated project file is going to be used only
+// for compilation of single file. For real build ninja files are used.
+struct LinkerOptions {
+ LinkerOptions();
+ ~LinkerOptions();
+
+ std::string subsystem;
+};
+
// Generates something which looks like a GUID, but depends only on the name and
// seed. This means the same name / seed will always generate the same GUID, so
// that projects and solutions which refer to each other can explicitly
@@ -34,4 +44,7 @@ std::string MakeGuid(const std::string& entry_path, const std::string& seed);
// Parses |cflag| value and stores it in |options|.
void ParseCompilerOption(const std::string& cflag, CompilerOptions* options);
+// Parses |ldflags| value and stores it in |options|.
+void ParseLinkerOption(const std::string& ldflag, LinkerOptions* options);
+
#endif // TOOLS_GN_VISUAL_STUDIO_UTILS_H_
« no previous file with comments | « no previous file | tools/gn/visual_studio_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698