2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2007-06-19 21:10:21 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2007-06-19 21:10:21 +04:00
|
|
|
|
2009-09-28 19:43:28 +04: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.
|
|
|
|
============================================================================*/
|
2007-06-19 21:10:21 +04:00
|
|
|
#ifndef cmInstallExportGenerator_h
|
|
|
|
#define cmInstallExportGenerator_h
|
|
|
|
|
|
|
|
#include "cmInstallGenerator.h"
|
|
|
|
|
2008-01-28 16:38:36 +03:00
|
|
|
class cmExportInstallFileGenerator;
|
2007-08-28 00:04:57 +04:00
|
|
|
class cmInstallFilesGenerator;
|
2008-01-28 16:38:36 +03:00
|
|
|
class cmInstallTargetGenerator;
|
2012-02-27 10:09:40 +04:00
|
|
|
class cmExportSet;
|
2008-01-28 16:38:36 +03:00
|
|
|
class cmMakefile;
|
2007-06-19 21:10:21 +04:00
|
|
|
|
|
|
|
/** \class cmInstallExportGenerator
|
|
|
|
* \brief Generate rules for creating an export files.
|
|
|
|
*/
|
2016-05-16 17:34:04 +03:00
|
|
|
class cmInstallExportGenerator : public cmInstallGenerator
|
2007-06-19 21:10:21 +04:00
|
|
|
{
|
|
|
|
public:
|
2016-05-16 17:34:04 +03:00
|
|
|
cmInstallExportGenerator(cmExportSet* exportSet, const char* dest,
|
|
|
|
const char* file_permissions,
|
2007-06-19 21:10:21 +04:00
|
|
|
const std::vector<std::string>& configurations,
|
2016-05-16 17:34:04 +03:00
|
|
|
const char* component, MessageLevel message,
|
|
|
|
bool exclude_from_all, const char* filename,
|
|
|
|
const char* name_space, bool exportOld);
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmInstallExportGenerator() CM_OVERRIDE;
|
2012-03-01 14:52:32 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
cmExportSet* GetExportSet() { return this->ExportSet; }
|
2012-09-15 23:55:24 +04:00
|
|
|
|
2016-06-27 22:25:27 +03:00
|
|
|
void Compute(cmLocalGenerator* lg) CM_OVERRIDE;
|
2015-08-06 00:05:22 +03:00
|
|
|
|
|
|
|
cmLocalGenerator* GetLocalGenerator() const { return this->LocalGenerator; }
|
2013-03-08 18:23:44 +04:00
|
|
|
|
2012-09-15 23:55:24 +04:00
|
|
|
const std::string& GetNamespace() const { return this->Namespace; }
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
std::string const& GetDestination() const { return this->Destination; }
|
2015-02-11 19:45:41 +03:00
|
|
|
|
2007-06-19 21:10:21 +04:00
|
|
|
protected:
|
2016-06-27 22:25:27 +03:00
|
|
|
void GenerateScript(std::ostream& os) CM_OVERRIDE;
|
|
|
|
void GenerateScriptConfigs(std::ostream& os,
|
|
|
|
Indent const& indent) CM_OVERRIDE;
|
|
|
|
void GenerateScriptActions(std::ostream& os,
|
|
|
|
Indent const& indent) CM_OVERRIDE;
|
2012-02-27 10:09:40 +04:00
|
|
|
void GenerateImportFile(cmExportSet const* exportSet);
|
|
|
|
void GenerateImportFile(const char* config, cmExportSet const* exportSet);
|
2008-01-28 16:38:36 +03:00
|
|
|
void ComputeTempDir();
|
2016-08-09 16:53:16 +03:00
|
|
|
size_t GetMaxConfigLength() const;
|
2007-06-19 21:10:21 +04:00
|
|
|
|
2012-03-01 14:52:32 +04:00
|
|
|
cmExportSet* ExportSet;
|
2007-06-19 21:10:21 +04:00
|
|
|
std::string FilePermissions;
|
2008-01-28 16:38:36 +03:00
|
|
|
std::string FileName;
|
|
|
|
std::string Namespace;
|
2013-06-04 18:47:57 +04:00
|
|
|
bool ExportOld;
|
2015-08-06 00:05:22 +03:00
|
|
|
cmLocalGenerator* LocalGenerator;
|
2007-06-19 21:10:21 +04:00
|
|
|
|
2008-01-28 16:38:36 +03:00
|
|
|
std::string TempDir;
|
|
|
|
std::string MainImportFile;
|
|
|
|
cmExportInstallFileGenerator* EFGen;
|
2007-06-19 21:10:21 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|