Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/CPack/WiX/cmWIXFeaturesSourceWriter.h
5021 views
1
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
file LICENSE.rst or https://cmake.org/licensing for details. */
3
#pragma once
4
5
#include "cmCPackGenerator.h"
6
#include "cmWIXPatch.h"
7
#include "cmWIXSourceWriter.h"
8
9
/** \class cmWIXFeaturesSourceWriter
10
* \brief Helper class to generate features.wxs
11
*/
12
class cmWIXFeaturesSourceWriter : public cmWIXSourceWriter
13
{
14
public:
15
cmWIXFeaturesSourceWriter(unsigned long wixVersion, cmCPackLog* logger,
16
std::string const& filename,
17
GuidType componentGuidType);
18
19
void CreateCMakePackageRegistryEntry(std::string const& package,
20
std::string const& upgradeGuid);
21
22
void EmitFeatureForComponentGroup(cmCPackComponentGroup const& group,
23
cmWIXPatch& patch);
24
25
void EmitFeatureForComponent(cmCPackComponent const& component,
26
cmWIXPatch& patch);
27
28
void EmitComponentRef(std::string const& id);
29
};
30
31