diff options
author | Brad King <brad.king@kitware.com> | 2007-07-02 14:56:57 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-07-02 14:56:57 -0400 |
commit | 7f29f8966d672a2f8ef50b2249f6d826d1702bdc (patch) | |
tree | 3508ba83985e80094c6f68518dc49cdf6f9f910c /Source/cmInstallExportGenerator.cxx | |
parent | fda7753f5ccac7ed2d3c9822e55cebd42c4467d2 (diff) | |
download | cmake-7f29f8966d672a2f8ef50b2249f6d826d1702bdc.tar.gz |
ENH: Further cleanup of installation script generation. The per-component and per-configuration testing is now done in cmake code instead of in the FILE(INSTALL) command. The generation of the cmake code to do these tests is centralized in cmInstallGenerator. Old-style shared library versioning and component/config support code has been removed from FILE(INSTALL). This commit is surrounded by the tags CMake-InstallGeneratorCleanup2-pre and CMake-InstallGeneratorCleanup2-post.
Diffstat (limited to 'Source/cmInstallExportGenerator.cxx')
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index 50d1e3b852..495da6cd78 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -23,13 +23,14 @@ #include "cmInstallExportGenerator.h" -cmInstallExportGenerator::cmInstallExportGenerator(const char* destination, - const char* file_permissions, - std::vector<std::string> const& configurations, - const char* filename, const char* prefix, const char* tempOutputDir) - :cmInstallGenerator(destination) +cmInstallExportGenerator::cmInstallExportGenerator( + const char* destination, + const char* file_permissions, + std::vector<std::string> const& configurations, + const char* component, + const char* filename, const char* prefix, const char* tempOutputDir) + :cmInstallGenerator(destination, configurations, component) ,FilePermissions(file_permissions) - ,Configurations(configurations) ,Filename(filename) ,Prefix(prefix) ,TempOutputDir(tempOutputDir) @@ -221,13 +222,19 @@ void cmInstallExportGenerator::GenerateScript(std::ostream& os) exportFileStream << " )\n\n"; } + // Perform the main install script generation. + this->cmInstallGenerator::GenerateScript(os); +} + +//---------------------------------------------------------------------------- +void cmInstallExportGenerator::GenerateScriptActions(std::ostream& os, + Indent const& indent) +{ // install rule for the file created above std::vector<std::string> exportFile; exportFile.push_back(this->ExportFilename); - this->AddInstallRule(os, this->Destination.c_str(), cmTarget::INSTALL_FILES, - exportFile, false, 0, - this->FilePermissions.c_str(), 0, this->Configurations, - 0, this->Filename.c_str(), 0); - + this->AddInstallRule(os, this->Destination.c_str(), cmTarget::INSTALL_FILES, + exportFile, false, 0, + this->FilePermissions.c_str(), + 0, this->Filename.c_str(), 0, indent); } - |