2009-10-02 01:21: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-10-02 01:21: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-10-02 01:21: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;
|
|
|
|
class cmTarget;
|
|
|
|
class cmTargetExport;
|
|
|
|
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:
|
2008-01-28 16:38:36 +03:00
|
|
|
cmInstallExportGenerator(const char* name,
|
|
|
|
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,
|
2008-01-28 16:38:36 +03:00
|
|
|
const char* filename, const char* name_space,
|
|
|
|
cmMakefile* mf);
|
|
|
|
~cmInstallExportGenerator();
|
2007-06-19 21:10:21 +04:00
|
|
|
protected:
|
2008-01-28 16:38:36 +03:00
|
|
|
typedef std::vector<cmTargetExport*> ExportSet;
|
2007-06-19 21:10:21 +04:00
|
|
|
|
|
|
|
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);
|
2008-01-28 16:38:36 +03:00
|
|
|
void GenerateImportFile(ExportSet const* exportSet);
|
|
|
|
void GenerateImportFile(const char* config, ExportSet const* exportSet);
|
|
|
|
void ComputeTempDir();
|
2007-06-19 21:10:21 +04:00
|
|
|
|
|
|
|
std::string Name;
|
|
|
|
std::string FilePermissions;
|
2008-01-28 16:38:36 +03:00
|
|
|
std::string FileName;
|
|
|
|
std::string Namespace;
|
|
|
|
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
|