summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-01-30 19:25:07 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-01-30 19:25:07 (GMT)
commit96d754046a379fd05b4a07d20ed4cfc9dcc7f49f (patch)
tree6eb04b84befbfa89e111a6da8823bafd12f89a89
parent5d35fd4b7ea9699fd114c2176c66fa2c484ec5af (diff)
downloadCMake-96d754046a379fd05b4a07d20ed4cfc9dcc7f49f.zip
CMake-96d754046a379fd05b4a07d20ed4cfc9dcc7f49f.tar.gz
CMake-96d754046a379fd05b4a07d20ed4cfc9dcc7f49f.tar.bz2
ENH: more cleanup and removal of old code
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx91
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h19
2 files changed, 9 insertions, 101 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index ec82003..cd107d7 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -60,7 +60,14 @@ cmLocalUnixMakefileGenerator3::~cmLocalUnixMakefileGenerator3()
//----------------------------------------------------------------------------
void cmLocalUnixMakefileGenerator3::Configure()
{
- this->ComputeHomeRelativeOutputPath();
+ // Include the rule file for each object.
+ m_HomeRelativeOutputPath =
+ cmSystemTools::RelativePath(m_Makefile->GetHomeOutputDirectory(),
+ m_Makefile->GetStartOutputDirectory());
+ if (m_HomeRelativeOutputPath.size())
+ {
+ m_HomeRelativeOutputPath += "/";
+ }
this->cmLocalGenerator::Configure();
}
@@ -297,18 +304,6 @@ void cmLocalUnixMakefileGenerator3::WriteDisclaimer(std::ostream& os)
<< cmMakefile::GetMinorVersion() << "\n\n";
}
-void cmLocalUnixMakefileGenerator3::ComputeHomeRelativeOutputPath()
-{
- // Include the rule file for each object.
- m_HomeRelativeOutputPath =
- cmSystemTools::RelativePath(m_Makefile->GetHomeOutputDirectory(),
- m_Makefile->GetStartOutputDirectory());
- if (m_HomeRelativeOutputPath.size())
- {
- m_HomeRelativeOutputPath += "/";
- }
-}
-
const std::string &cmLocalUnixMakefileGenerator3::GetHomeRelativeOutputPath()
{
return m_HomeRelativeOutputPath;
@@ -898,26 +893,6 @@ cmLocalUnixMakefileGenerator3
}
//----------------------------------------------------------------------------
-bool
-cmLocalUnixMakefileGenerator3
-::GenerateDependsMakeFile(const std::string& lang, const char* objFile)
-{
- // Construct a checker for the given language.
- std::auto_ptr<cmDepends>
- checker(this->GetDependsChecker(lang,false));
- if(checker.get())
- {
- // Check the dependencies. Ths is required because we need at least an
- // empty depends.make for make to include, so at cmake time the
- // ::Check() method will generate that if it does not exist
- checker->Check(objFile, 0);
-
- return true;
- }
- return false;
-}
-
-//----------------------------------------------------------------------------
void
cmLocalUnixMakefileGenerator3
::WriteMakeRule(std::ostream& os,
@@ -2505,24 +2480,6 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands,
}
}
-//============================================================================
-//----------------------------------------------------------------------------
-bool
-cmLocalUnixMakefileGenerator3::SamePath(const char* path1, const char* path2)
-{
- if (strcmp(path1, path2) == 0)
- {
- return true;
- }
-#if defined(_WIN32) || defined(__APPLE__)
- return
- (cmSystemTools::LowerCase(this->ConvertToOutputForExisting(path1)) ==
- cmSystemTools::LowerCase(this->ConvertToOutputForExisting(path2)));
-#else
- return false;
-#endif
-}
-
//----------------------------------------------------------------------------
// take a tgt path and convert it into a make target, it could be full, or relative
std::string
@@ -2678,35 +2635,6 @@ cmLocalUnixMakefileGenerator3
m_MakeVariableMap[unmodified] = ret;
return ret;
}
-//============================================================================
-
-//----------------------------------------------------------------------------
-cmDepends*
-cmLocalUnixMakefileGenerator3::GetDependsChecker(const std::string& lang,
- bool verbose)
-{
- cmDepends *ret = 0;
- if(lang == "C" || lang == "CXX" || lang == "RC")
- {
- ret = new cmDependsC();
- }
-#ifdef CMAKE_BUILD_WITH_CMAKE
- else if(lang == "Fortran")
- {
- ret = new cmDependsFortran();
- }
- else if(lang == "Java")
- {
- ret = new cmDependsJava();
- }
-#endif
- if (ret)
- {
- ret->SetVerbose(verbose);
- ret->SetFileComparison(m_GlobalGenerator->GetCMakeInstance()->GetFileComparison());
- }
- return ret;
-}
//----------------------------------------------------------------------------
bool
@@ -3283,7 +3211,4 @@ void cmLocalUnixMakefileGenerator3
}
cmakefileStream << " )\n";
}
-
-
-
}
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index 6b86ce5..b0d2599 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -84,12 +84,7 @@ public:
std::string &GetMakeSilentFlag() { return m_MakeSilentFlag; }
/** used to create a recursive make call */
- std::string GetRecursiveMakeCall(const char *makefile, const char* tgt);
-
-
-
-
-
+ std::string GetRecursiveMakeCall(const char *makefile, const char* tgt);
/** Set whether the echo command needs its argument quoted. */
@@ -243,15 +238,6 @@ protected:
void WriteObjectDependRules(cmSourceFile& source,
std::vector<std::string>& depends);
- // this is used only by WriteObjectDependFile
- bool GenerateDependsMakeFile(const std::string& lang,
- const char* objFile);
-
- // return the appropriate depends checker
- cmDepends* GetDependsChecker(const std::string& lang,
- bool verbose);
-
-
void GenerateCustomRuleFile(const cmCustomCommand& cc,
std::ostream &ruleStream);
@@ -337,13 +323,10 @@ protected:
const std::vector<std::string>& files);
//==========================================================================
- bool SamePath(const char* path1, const char* path2);
std::string& CreateSafeUniqueObjectFileName(const char* sin);
std::string CreateMakeVariable(const char* sin, const char* s2in);
//==========================================================================
- void ComputeHomeRelativeOutputPath();
-
private:
std::map<cmStdString, IntegrityCheckSetMap> m_CheckDependFiles;