cmake/Source/CPack/WiX/cmWIXFeaturesSourceWriter.h

29 lines
979 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2015-04-27 22:25:09 +02:00
2020-02-01 23:06:01 +01:00
#include "cmCPackGenerator.h"
2016-10-30 18:24:19 +01:00
#include "cmWIXPatch.h"
2015-04-27 22:25:09 +02:00
#include "cmWIXSourceWriter.h"
2016-07-09 11:21:54 +02:00
2015-04-27 22:25:09 +02:00
/** \class cmWIXFeaturesSourceWriter
* \brief Helper class to generate features.wxs
*/
class cmWIXFeaturesSourceWriter : public cmWIXSourceWriter
{
public:
2016-10-30 18:24:19 +01:00
cmWIXFeaturesSourceWriter(cmCPackLog* logger, std::string const& filename,
GuidType componentGuidType);
2015-04-27 22:25:09 +02:00
2016-07-09 11:21:54 +02:00
void CreateCMakePackageRegistryEntry(std::string const& package,
std::string const& upgradeGuid);
2015-04-27 22:25:09 +02:00
2016-10-30 18:24:19 +01:00
void EmitFeatureForComponentGroup(const cmCPackComponentGroup& group,
cmWIXPatch& patch);
2015-04-27 22:25:09 +02:00
2016-10-30 18:24:19 +01:00
void EmitFeatureForComponent(const cmCPackComponent& component,
cmWIXPatch& patch);
2015-04-27 22:25:09 +02:00
void EmitComponentRef(std::string const& id);
};