diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-05-05 21:35:37 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-05-05 21:35:37 (GMT) |
commit | e76a0c6071337a6114c6a5851422aa735addb74b (patch) | |
tree | add9d9084224c27747624d241b6fcbdf039f5f96 /Source/cmVisualStudio10TargetGenerator.h | |
parent | 135825df209db1375f60c44b14dbceb362e8d5aa (diff) | |
download | CMake-e76a0c6071337a6114c6a5851422aa735addb74b.zip CMake-e76a0c6071337a6114c6a5851422aa735addb74b.tar.gz CMake-e76a0c6071337a6114c6a5851422aa735addb74b.tar.bz2 |
VS: improve options generation
Make use of the `Elem` and `OptionsHelper` classes; some cleanup
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 f6c5a64..d0fe51c 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; |