| Index: tools/gn/visual_studio_utils.h
|
| diff --git a/tools/gn/visual_studio_utils.h b/tools/gn/visual_studio_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..82812440822a0f4098ed08821e2f932d330527ac
|
| --- /dev/null
|
| +++ b/tools/gn/visual_studio_utils.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// 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_UTILS_H_
|
| +#define TOOLS_GN_VISUAL_STUDIO_UTILS_H_
|
| +
|
| +#include <string>
|
| +
|
| +// Some compiler 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 CompilerOptions {
|
| + std::string additional_options;
|
| + std::string buffer_security_check;
|
| + std::string forced_include_files;
|
| + std::string disable_specific_warnings;
|
| + std::string optimization;
|
| + std::string runtime_library;
|
| + std::string treat_warning_as_error;
|
| + std::string warning_level;
|
| +};
|
| +
|
| +// Creates GUID-like string. It looks like GUID but isn't a real GUID.
|
| +std::string MakeGuid(const std::string& entry_path, const std::string& seed);
|
| +
|
| +// Parses |cflag| value and stores it to |options|.
|
| +void ParseCompilerOption(const std::string& cflag, CompilerOptions* options);
|
| +
|
| +#endif // TOOLS_GN_VISUAL_STUDIO_UTILS_H_
|
|
|