cmake/Source/cmInstallFilesGenerator.h

56 lines
2.0 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2009-10-04 10:30:41 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2009-10-04 10:30:41 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cmInstallFilesGenerator_h
#define cmInstallFilesGenerator_h
#include "cmInstallGenerator.h"
/** \class cmInstallFilesGenerator
* \brief Generate file installation rules.
*/
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,
const char* component,
2015-04-27 22:25:09 +02:00
MessageLevel message,
const char* rename,
bool optional = false);
virtual ~cmInstallFilesGenerator();
2015-11-17 17:22:37 +01:00
void Compute(cmLocalGenerator* lg);
std::string GetDestination(std::string const& config) const;
protected:
virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
2014-08-03 19:52:23 +02:00
virtual void GenerateScriptForConfig(std::ostream& os,
2015-04-27 22:25:09 +02:00
const std::string& config,
2014-08-03 19:52:23 +02:00
Indent const& indent);
2015-11-17 17:22:37 +01:00
void AddFilesInstallRule(std::ostream& os,
const std::string config,
Indent const& 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