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

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

Issue 1570113002: Visual Studio generators for GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move XmlElementWriter to separate file + minor fixes Created 4 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef TOOLS_GN_VISUAL_STUDIO_UTILS_H_
6 #define TOOLS_GN_VISUAL_STUDIO_UTILS_H_
7
8 #include <string>
9
10 // Some compiler options which will be written to project file. We don't need to
11 // specify all options because generated project file is going to be used only
12 // for compilation of single file. For real build ninja files are used.
13 struct CompilerOptions {
14 std::string additional_options;
15 std::string buffer_security_check;
16 std::string forced_include_files;
17 std::string disable_specific_warnings;
18 std::string optimization;
19 std::string runtime_library;
20 std::string treat_warning_as_error;
21 std::string warning_level;
22 };
23
24 // Generates something which looks like a GUID, but depends only on the name and
25 // seed. This means the same name / seed will always generate the same GUID, so
26 // that projects and solutions which refer to each other can explicitly
27 // determine the GUID to refer to explicitly. It also means that the GUID will
28 // not change when the project for a target is rebuilt.
29 std::string MakeGuid(const std::string& entry_path, const std::string& seed);
30
31 // Parses |cflag| value and stores it in |options|.
32 void ParseCompilerOption(const std::string& cflag, CompilerOptions* options);
33
34 #endif // TOOLS_GN_VISUAL_STUDIO_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698