diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2016-05-17 14:00:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-18 13:49:14 (GMT) |
commit | 41199f8c1ea02bacb516ae8bd57d9c9e1d3fd4ee (patch) | |
tree | 07b7d562e9896dc36de8a79dffb5a80290b560ab /Source/CPack/IFW/cmCPackIFWGenerator.h | |
parent | 6ca6b0dd7b1f4bb7429cbe039101558c58f3ea27 (diff) | |
download | CMake-41199f8c1ea02bacb516ae8bd57d9c9e1d3fd4ee.zip CMake-41199f8c1ea02bacb516ae8bd57d9c9e1d3fd4ee.tar.gz CMake-41199f8c1ea02bacb516ae8bd57d9c9e1d3fd4ee.tar.bz2 |
CPackIFW: Add support for Promoting Updates
Add support for this feature added by QtIFW 2.0.3:
http://doc.qt.io/qtinstallerframework/ifw-updates.html
Add a `cpack_ifw_update_repository` command as porcelain.
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWGenerator.h')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWGenerator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWGenerator.h b/Source/CPack/IFW/cmCPackIFWGenerator.h index d8cc562..2b35749 100644 --- a/Source/CPack/IFW/cmCPackIFWGenerator.h +++ b/Source/CPack/IFW/cmCPackIFWGenerator.h @@ -17,6 +17,7 @@ #include "cmCPackIFWInstaller.h" #include "cmCPackIFWPackage.h" +#include "cmCPackIFWRepository.h" class cmXMLWriter; @@ -31,6 +32,7 @@ public: cmCPackTypeMacro(cmCPackIFWGenerator, cmCPackGenerator); typedef std::map<std::string, cmCPackIFWPackage> PackagesMap; + typedef std::map<std::string, cmCPackIFWRepository> RepositoriesMap; typedef std::map<std::string, cmCPackComponent> ComponentsMap; typedef std::map<std::string, cmCPackComponentGroup> ComponentGoupsMap; typedef std::map<std::string, cmCPackIFWPackage::DependenceStruct> @@ -122,6 +124,8 @@ protected: cmCPackIFWPackage* GetGroupPackage(cmCPackComponentGroup* group) const; cmCPackIFWPackage* GetComponentPackage(cmCPackComponent* component) const; + cmCPackIFWRepository* GetRepository(const std::string& repositoryName); + void WriteGeneratedByToStrim(cmXMLWriter& xout); protected: @@ -129,11 +133,16 @@ protected: friend class cmCPackIFWPackage; friend class cmCPackIFWInstaller; + friend class cmCPackIFWRepository; // Installer cmCPackIFWInstaller Installer; + // Repository + cmCPackIFWRepository Repository; // Collection of packages PackagesMap Packages; + // Collection of repositories + RepositoriesMap Repositories; // Collection of binary packages std::set<cmCPackIFWPackage*> BinaryPackages; // Collection of downloaded packages |