diff options
author | Brad King <brad.king@kitware.com> | 2018-05-08 12:36:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-08 12:36:57 (GMT) |
commit | f60e2eb3c59f8c2a8a1f4f8013da8eeedc0c459d (patch) | |
tree | 0ac9ad26e178c3795872f2af7a73a5cddc3cf84e /Source/cmVisualStudio10TargetGenerator.h | |
parent | 42d198744b8645ee35633c7af6e122d152bda8e9 (diff) | |
parent | e76a0c6071337a6114c6a5851422aa735addb74b (diff) | |
download | CMake-f60e2eb3c59f8c2a8a1f4f8013da8eeedc0c459d.zip CMake-f60e2eb3c59f8c2a8a1f4f8013da8eeedc0c459d.tar.gz CMake-f60e2eb3c59f8c2a8a1f4f8013da8eeedc0c459d.tar.bz2 |
Merge topic 'vs-improve-options'
e76a0c6071 VS: improve options generation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2044
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h index ecf19d7..38c7725 100644 --- a/Source/cmVisualStudio10TargetGenerator.h +++ b/Source/cmVisualStudio10TargetGenerator.h @@ -32,10 +32,6 @@ public: cmGlobalVisualStudio10Generator* gg); ~cmVisualStudio10TargetGenerator(); void Generate(); - // used by cmVisualStudioGeneratorOptions - std::string CalcCondition(const std::string& config) const; - void WritePlatformConfigTag(const char* tag, const std::string& config, - int indentLevel, const std::string& content); private: struct ToolSource @@ -54,13 +50,13 @@ private: }; struct Elem; + struct OptionsHelper; std::string ConvertPath(std::string const& path, bool forceRelative); void WriteString(const char* line, int indentLevel); - void WriteElem(const char* tag, const char* val, int indentLevel); - void WriteElem(const char* tag, std::string const& val, int indentLevel); - void WriteElemEscapeXML(const char* tag, std::string const& val, - int indentLevel); + std::string CalcCondition(const std::string& config) const; + void WritePlatformConfigTag(const char* tag, const std::string& config, + Elem& parent, const std::string& content); void WriteProjectConfigurations(Elem& e0); void WriteProjectConfigurationValues(Elem& e0); void WriteMSToolConfigurationValues(Elem& e1, std::string const& config); @@ -182,6 +178,7 @@ private: void GetCSharpSourceLink(cmSourceFile const* sf, std::string& link); private: + friend class cmVS10GeneratorOptions; typedef cmVS10GeneratorOptions Options; typedef std::map<std::string, std::unique_ptr<Options>> OptionsMap; OptionsMap ClOptions; |