summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-06-28 20:11:18 (GMT)
committerBrad King <brad.king@kitware.com>2007-06-28 20:11:18 (GMT)
commitfdf7b203af156f08bf149b35d0b54573d4b25abf (patch)
treed73c95726631536288f9efd46a704f2d5b11b3c8 /Source/cmInstallTargetGenerator.h
parent33e9becd6f1a8343d347611c2037bd980ea41690 (diff)
downloadCMake-fdf7b203af156f08bf149b35d0b54573d4b25abf.zip
CMake-fdf7b203af156f08bf149b35d0b54573d4b25abf.tar.gz
CMake-fdf7b203af156f08bf149b35d0b54573d4b25abf.tar.bz2
ENH: First step of install script generator cleanup. Each configuration to be installed is now separately handled instead of using variables to store per-configuration names. For targets the component and configuration install-time tests are now done in the install script instead of in the FILE(INSTALL) command. This cleans things up like not trying to strip a file that was optionally not installed. It also simplifies the code for install_name adjustment on OSX. This commit is surrounded by the tags CMake-InstallGeneratorCleanup1-pre and CMake-InstallGeneratorCleanup1-post.
Diffstat (limited to 'Source/cmInstallTargetGenerator.h')
-rw-r--r--Source/cmInstallTargetGenerator.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h
index 9ebaa70..37e6ea2 100644
--- a/Source/cmInstallTargetGenerator.h
+++ b/Source/cmInstallTargetGenerator.h
@@ -44,19 +44,15 @@ public:
protected:
virtual void GenerateScript(std::ostream& os);
- void PrepareScriptReference(std::ostream& os, cmTarget* target,
- const char* place, bool useConfigDir,
- bool implib, bool useSOName);
- std::string GetScriptReference(cmTarget* target, const char* place,
- bool implib, bool useSOName);
- void AddInstallNamePatchRule(std::ostream& os, const char* destination);
- void AddStripRule(std::ostream& os,
- cmTarget::TargetType type,
- const std::string& quotedFullDestinationFilename,
- bool optional);
- void AddRanlibRule(std::ostream& os,
- cmTarget::TargetType type,
- const std::string& quotedFullDestinationFilename);
+ void GenerateScriptForConfig(std::ostream& os,
+ const char* fromDir,
+ const char* config);
+ void AddInstallNamePatchRule(std::ostream& os, const char* config,
+ const std::string& toFullPath);
+ void AddStripRule(std::ostream& os, cmTarget::TargetType type,
+ const std::string& toFullPath);
+ void AddRanlibRule(std::ostream& os, cmTarget::TargetType type,
+ const std::string& toFullPath);
cmTarget* Target;
bool ImportLibrary;