MCPcopy Create free account
hub / github.com/Kitware/CMake / EmitComponentCreateFolder

Method EmitComponentCreateFolder

Source/CPack/WiX/cmWIXFilesSourceWriter.cxx:109–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::string cmWIXFilesSourceWriter::EmitComponentCreateFolder(
110 std::string const& directoryId, std::string const& guid,
111 cmInstalledFile const* installedFile)
112{
113 std::string componentId = std::string("CM_C_EMPTY_") + directoryId;
114
115 BeginElement("DirectoryRef");
116 AddAttribute("Id", directoryId);
117
118 BeginElement("Component");
119 AddAttribute("Id", componentId);
120 AddAttribute("Guid", guid);
121
122 BeginElement("CreateFolder");
123
124 if (installedFile) {
125 cmWIXAccessControlList acl(Logger, *installedFile, *this);
126 acl.Apply();
127 }
128
129 EndElement("CreateFolder");
130 EndElement("Component");
131 EndElement("DirectoryRef");
132
133 return componentId;
134}
135
136std::string cmWIXFilesSourceWriter::EmitComponentFile(
137 std::string const& directoryId, std::string const& id,

Callers 1

Calls 1

ApplyMethod · 0.80

Tested by

no test coverage detected