diff options
author | Fritz Elfert <fritz@fritz-elfert.de> | 2020-08-15 14:19:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-18 11:50:49 (GMT) |
commit | 267de3ba302b045d2bcf18c4bfe9642f380f664c (patch) | |
tree | 091175e2738070be9e7b0efe84705da9bb5df80e /Source/CPack/WiX/cmCPackWIXGenerator.h | |
parent | 39cdfa9681be93be49413545d8e22368b0531a48 (diff) | |
download | CMake-267de3ba302b045d2bcf18c4bfe9642f380f664c.zip CMake-267de3ba302b045d2bcf18c4bfe9642f380f664c.tar.gz CMake-267de3ba302b045d2bcf18c4bfe9642f380f664c.tar.bz2 |
CPack/WiX: Add support for custom XML namespaces
Add a `CPACK_WIX_CUSTOM_XMLNS` option to specify these.
Fixes: #21098
Diffstat (limited to 'Source/CPack/WiX/cmCPackWIXGenerator.h')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.h b/Source/CPack/WiX/cmCPackWIXGenerator.h index d5a16ec..b9c37e9 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.h +++ b/Source/CPack/WiX/cmCPackWIXGenerator.h @@ -49,6 +49,7 @@ private: using id_map_t = std::map<std::string, std::string>; using ambiguity_map_t = std::map<std::string, size_t>; using extension_set_t = std::set<std::string>; + using xmlns_map_t = std::map<std::string, std::string>; enum class DefinitionType { @@ -147,16 +148,22 @@ private: void CollectExtensions(std::string const& variableName, extension_set_t& extensions); + void CollectXmlNamespaces(std::string const& variableName, + xmlns_map_t& namespaces); + void AddCustomFlags(std::string const& variableName, std::ostream& stream); std::string RelativePathWithoutComponentPrefix(std::string const& path); + void InjectXmlNamespaces(cmWIXSourceWriter& sourceWriter); + std::vector<std::string> WixSources; id_map_t PathToIdMap; ambiguity_map_t IdAmbiguityCounter; extension_set_t CandleExtensions; extension_set_t LightExtensions; + xmlns_map_t CustomXmlNamespaces; std::string CPackTopLevel; |