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.
|
|
|
|
*/
|
|
|
|
class cmInstallExportGenerator: public cmInstallGenerator
|
|
|
|
{
|
|
|
|
public:
|
2012-03-01 14:52:32 +04:00
|
|
|
cmInstallExportGenerator(cmExportSet* exportSet,
|
2008-01-28 16:38:36 +03:00
|
|
|
const char* dest, const char* file_permissions,
|
2007-06-19 21:10:21 +04:00
|
|
|
const std::vector<std::string>& configurations,
|
2007-07-02 22:56:57 +04:00
|
|
|
const char* component,
|
2014-06-24 18:45:07 +04:00
|
|
|
MessageLevel message,
|
2008-01-28 16:38:36 +03:00
|
|
|
const char* filename, const char* name_space,
|
2013-06-04 18:47:57 +04:00
|
|
|
bool exportOld, cmMakefile* mf);
|
2008-01-28 16:38:36 +03:00
|
|
|
~cmInstallExportGenerator();
|
2012-03-01 14:52:32 +04:00
|
|
|
|
2012-09-15 23:55:24 +04:00
|
|
|
cmExportSet* GetExportSet() {return this->ExportSet;}
|
|
|
|
|
2013-03-08 18:23:44 +04:00
|
|
|
cmMakefile* GetMakefile() const { return this->Makefile; }
|
|
|
|
|
2012-09-15 23:55:24 +04:00
|
|
|
const std::string& GetNamespace() const { return this->Namespace; }
|
|
|
|
|
2015-02-11 19:45:41 +03:00
|
|
|
std::string const& GetDestination() const
|
|
|
|
{ return this->Destination; }
|
|
|
|
|
2007-06-19 21:10:21 +04:00
|
|
|
protected:
|
|
|
|
virtual void GenerateScript(std::ostream& os);
|
2008-01-28 16:38:36 +03:00
|
|
|
virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent);
|
2007-07-02 22:56:57 +04:00
|
|
|
virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
|
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();
|
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;
|
2008-01-28 16:38:36 +03:00
|
|
|
cmMakefile* Makefile;
|
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
|