2007-06-19 21:10:21 +04:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE. See the above copyright notices for more information.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#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
|