cmake/Source/cmInstallFilesGenerator.h

53 lines
1.7 KiB
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. */
#ifndef cmInstallFilesGenerator_h
#define cmInstallFilesGenerator_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include "cmInstallGenerator.h"
2016-10-30 18:24:19 +01:00
#include "cmScriptGenerator.h"
#include <iosfwd>
#include <string>
#include <vector>
class cmLocalGenerator;
/** \class cmInstallFilesGenerator
* \brief Generate file installation rules.
*/
2016-07-09 11:21:54 +02:00
class cmInstallFilesGenerator : public cmInstallGenerator
{
public:
2015-11-17 17:22:37 +01:00
cmInstallFilesGenerator(std::vector<std::string> const& files,
const char* dest, bool programs,
const char* file_permissions,
std::vector<std::string> const& configurations,
2016-07-09 11:21:54 +02:00
const char* component, MessageLevel message,
bool exclude_from_all, const char* rename,
bool optional = false);
2018-01-26 17:06:56 +01:00
~cmInstallFilesGenerator() override;
2018-01-26 17:06:56 +01:00
void Compute(cmLocalGenerator* lg) override;
2015-11-17 17:22:37 +01:00
std::string GetDestination(std::string const& config) const;
protected:
2018-01-26 17:06:56 +01:00
void GenerateScriptActions(std::ostream& os, Indent indent) override;
2016-10-30 18:24:19 +01:00
void GenerateScriptForConfig(std::ostream& os, const std::string& config,
2018-01-26 17:06:56 +01:00
Indent indent) override;
2016-07-09 11:21:54 +02:00
void AddFilesInstallRule(std::ostream& os, std::string const& config,
2017-07-20 19:35:53 +02:00
Indent indent,
2014-08-03 19:52:23 +02:00
std::vector<std::string> const& files);
2015-11-17 17:22:37 +01:00
cmLocalGenerator* LocalGenerator;
std::vector<std::string> Files;
std::string FilePermissions;
std::string Rename;
2015-11-17 17:22:37 +01:00
bool Programs;
bool Optional;
};
#endif