mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-08 16:19:36 -06:00
``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "cmCPackGenerator.h"
|
|
#include "cmWIXSourceWriter.h"
|
|
|
|
/** \class cmWIXDirectoriesSourceWriter
|
|
* \brief Helper class to generate directories.wxs
|
|
*/
|
|
class cmWIXDirectoriesSourceWriter : public cmWIXSourceWriter
|
|
{
|
|
public:
|
|
cmWIXDirectoriesSourceWriter(unsigned long wixVersion, cmCPackLog* logger,
|
|
std::string const& filename,
|
|
GuidType componentGuidType);
|
|
|
|
void EmitStartMenuFolder(std::string const& startMenuFolder);
|
|
|
|
void EmitDesktopFolder();
|
|
|
|
void EmitStartupFolder();
|
|
|
|
struct InstallationPrefixDirectory
|
|
{
|
|
bool HasStandardDirectory = false;
|
|
size_t Depth = 0;
|
|
};
|
|
|
|
InstallationPrefixDirectory BeginInstallationPrefixDirectory(
|
|
std::string const& programFilesFolderId,
|
|
std::string const& installRootString);
|
|
|
|
void EndInstallationPrefixDirectory(
|
|
InstallationPrefixDirectory installationPrefixDirectory);
|
|
};
|