|
@@ -235,13 +235,10 @@ void cmLocalVisualStudio6Generator::AddDSPBuildRule(cmTarget& tgt)
|
|
|
comment += makefileIn;
|
|
|
std::string args;
|
|
|
args = "-H";
|
|
|
- args += this->Convert(this->Makefile->GetHomeDirectory(),
|
|
|
- START_OUTPUT, UNCHANGED, true);
|
|
|
+ args += this->Makefile->GetHomeDirectory();
|
|
|
commandLine.push_back(args);
|
|
|
args = "-B";
|
|
|
- args +=
|
|
|
- this->Convert(this->Makefile->GetHomeOutputDirectory(),
|
|
|
- START_OUTPUT, UNCHANGED, true);
|
|
|
+ args += this->Makefile->GetHomeOutputDirectory();
|
|
|
commandLine.push_back(args);
|
|
|
|
|
|
std::vector<std::string> const& listFiles = this->Makefile->GetListFiles();
|
|
@@ -498,7 +495,7 @@ void cmLocalVisualStudio6Generator
|
|
|
// Tell MS-Dev what the source is. If the compiler knows how to
|
|
|
// build it, then it will.
|
|
|
fout << "SOURCE=" <<
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(source.c_str()) << "\n\n";
|
|
|
+ this->ConvertToOutputFormat(source.c_str(), SHELL) << "\n\n";
|
|
|
if(!depends.empty())
|
|
|
{
|
|
|
// Write out the dependencies for the rule.
|
|
@@ -507,7 +504,7 @@ void cmLocalVisualStudio6Generator
|
|
|
d != depends.end(); ++d)
|
|
|
{
|
|
|
fout << "\\\n\t" <<
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(d->c_str());
|
|
|
+ this->ConvertToOutputFormat(d->c_str(), SHELL);
|
|
|
}
|
|
|
fout << "\n";
|
|
|
}
|
|
@@ -663,7 +660,7 @@ cmLocalVisualStudio6Generator
|
|
|
if(this->GetRealDependency(d->c_str(), config.c_str(), dep))
|
|
|
{
|
|
|
fout << "\\\n\t" <<
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(dep.c_str());
|
|
|
+ this->ConvertToOutputFormat(dep.c_str(), SHELL);
|
|
|
}
|
|
|
}
|
|
|
fout << "\n";
|
|
@@ -689,7 +686,7 @@ cmLocalVisualStudio6Generator
|
|
|
++o)
|
|
|
{
|
|
|
// Write a rule for every output generated by this command.
|
|
|
- fout << this->ConvertToOptionallyRelativeOutputPath(o->c_str())
|
|
|
+ fout << this->ConvertToOutputFormat(o->c_str(), SHELL)
|
|
|
<< " : \"$(SOURCE)\" \"$(INTDIR)\" \"$(OUTDIR)\"\n\t";
|
|
|
fout << script.c_str() << "\n\n";
|
|
|
}
|
|
@@ -906,7 +903,7 @@ cmLocalVisualStudio6Generator::GetTargetIncludeOptions(cmTarget &target,
|
|
|
for(i = includes.begin(); i != includes.end(); ++i)
|
|
|
{
|
|
|
std::string tmp =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(i->c_str());
|
|
|
+ this->ConvertToOutputFormat(i->c_str(), SHELL);
|
|
|
if(useShortPath)
|
|
|
{
|
|
|
cmSystemTools::GetShortPath(tmp.c_str(), tmp);
|
|
@@ -997,14 +994,14 @@ void cmLocalVisualStudio6Generator
|
|
|
if(libPath.size())
|
|
|
{
|
|
|
std::string lpath =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(libPath.c_str());
|
|
|
+ this->ConvertToOutputFormat(libPath.c_str(), SHELL);
|
|
|
if(lpath.size() == 0)
|
|
|
{
|
|
|
lpath = ".";
|
|
|
}
|
|
|
std::string lpathIntDir = libPath + "$(INTDIR)";
|
|
|
lpathIntDir =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(lpathIntDir.c_str());
|
|
|
+ this->ConvertToOutputFormat(lpathIntDir.c_str(), SHELL);
|
|
|
if(pathEmitted.insert(lpath).second)
|
|
|
{
|
|
|
libOptions += " /LIBPATH:";
|
|
@@ -1030,14 +1027,14 @@ void cmLocalVisualStudio6Generator
|
|
|
if(exePath.size())
|
|
|
{
|
|
|
std::string lpath =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(exePath.c_str());
|
|
|
+ this->ConvertToOutputFormat(exePath.c_str(), SHELL);
|
|
|
if(lpath.size() == 0)
|
|
|
{
|
|
|
lpath = ".";
|
|
|
}
|
|
|
std::string lpathIntDir = exePath + "$(INTDIR)";
|
|
|
lpathIntDir =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(lpathIntDir.c_str());
|
|
|
+ this->ConvertToOutputFormat(lpathIntDir.c_str(), SHELL);
|
|
|
|
|
|
if(pathEmitted.insert(lpath).second)
|
|
|
{
|
|
@@ -1071,14 +1068,14 @@ void cmLocalVisualStudio6Generator
|
|
|
path += "/";
|
|
|
}
|
|
|
std::string lpath =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(path.c_str());
|
|
|
+ this->ConvertToOutputFormat(path.c_str(), SHELL);
|
|
|
if(lpath.size() == 0)
|
|
|
{
|
|
|
lpath = ".";
|
|
|
}
|
|
|
std::string lpathIntDir = path + "$(INTDIR)";
|
|
|
lpathIntDir =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(lpathIntDir.c_str());
|
|
|
+ this->ConvertToOutputFormat(lpathIntDir.c_str(), SHELL);
|
|
|
if(pathEmitted.insert(lpath).second)
|
|
|
{
|
|
|
libOptions += " /LIBPATH:";
|
|
@@ -1142,9 +1139,9 @@ void cmLocalVisualStudio6Generator
|
|
|
libDebug += ".lib";
|
|
|
}
|
|
|
}
|
|
|
- lib = this->ConvertToOptionallyRelativeOutputPath(lib.c_str());
|
|
|
+ lib = this->ConvertToOutputFormat(lib.c_str(), SHELL);
|
|
|
libDebug =
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(libDebug.c_str());
|
|
|
+ this->ConvertToOutputFormat(libDebug.c_str(), SHELL);
|
|
|
|
|
|
if (j->second == cmTarget::GENERAL)
|
|
|
{
|
|
@@ -1367,21 +1364,21 @@ void cmLocalVisualStudio6Generator
|
|
|
{
|
|
|
#ifdef CM_USE_OLD_VS6
|
|
|
outputDirOld =
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath
|
|
|
- (target.GetDirectory().c_str()));
|
|
|
+ removeQuotes(this->ConvertToOutputFormat
|
|
|
+ (target.GetDirectory().c_str(), SHELL));
|
|
|
#endif
|
|
|
outputDirDebug =
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath(
|
|
|
- target.GetDirectory("Debug").c_str()));
|
|
|
+ removeQuotes(this->ConvertToOutputFormat(
|
|
|
+ target.GetDirectory("Debug").c_str(), SHELL));
|
|
|
outputDirRelease =
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath(
|
|
|
- target.GetDirectory("Release").c_str()));
|
|
|
+ removeQuotes(this->ConvertToOutputFormat(
|
|
|
+ target.GetDirectory("Release").c_str(), SHELL));
|
|
|
outputDirMinSizeRel =
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath(
|
|
|
- target.GetDirectory("MinSizeRel").c_str()));
|
|
|
+ removeQuotes(this->ConvertToOutputFormat(
|
|
|
+ target.GetDirectory("MinSizeRel").c_str(), SHELL));
|
|
|
outputDirRelWithDebInfo =
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath(
|
|
|
- target.GetDirectory("RelWithDebInfo").c_str()));
|
|
|
+ removeQuotes(this->ConvertToOutputFormat(
|
|
|
+ target.GetDirectory("RelWithDebInfo").c_str(), SHELL));
|
|
|
}
|
|
|
else if(target.GetType() == cmTarget::OBJECT_LIBRARY)
|
|
|
{
|
|
@@ -1449,15 +1446,13 @@ void cmLocalVisualStudio6Generator
|
|
|
targetImplibFlagMinSizeRel = "/implib:";
|
|
|
targetImplibFlagRelWithDebInfo = "/implib:";
|
|
|
targetImplibFlagDebug +=
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(fullPathImpDebug.c_str());
|
|
|
+ this->ConvertToOutputFormat(fullPathImpDebug.c_str(), SHELL);
|
|
|
targetImplibFlagRelease +=
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(fullPathImpRelease.c_str());
|
|
|
+ this->ConvertToOutputFormat(fullPathImpRelease.c_str(), SHELL);
|
|
|
targetImplibFlagMinSizeRel +=
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(
|
|
|
- fullPathImpMinSizeRel.c_str());
|
|
|
+ this->ConvertToOutputFormat(fullPathImpMinSizeRel.c_str(), SHELL);
|
|
|
targetImplibFlagRelWithDebInfo +=
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(
|
|
|
- fullPathImpRelWithDebInfo.c_str());
|
|
|
+ this->ConvertToOutputFormat(fullPathImpRelWithDebInfo.c_str(), SHELL);
|
|
|
}
|
|
|
|
|
|
#ifdef CM_USE_OLD_VS6
|
|
@@ -1669,12 +1664,12 @@ void cmLocalVisualStudio6Generator
|
|
|
// to convert to output path for unix to win32 conversion
|
|
|
cmSystemTools::ReplaceString
|
|
|
(line, "LIBRARY_OUTPUT_PATH",
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath
|
|
|
- (libPath.c_str())).c_str());
|
|
|
+ removeQuotes(this->ConvertToOutputFormat
|
|
|
+ (libPath.c_str(), SHELL)).c_str());
|
|
|
cmSystemTools::ReplaceString
|
|
|
(line, "EXECUTABLE_OUTPUT_PATH",
|
|
|
- removeQuotes(this->ConvertToOptionallyRelativeOutputPath
|
|
|
- (exePath.c_str())).c_str());
|
|
|
+ removeQuotes(this->ConvertToOutputFormat
|
|
|
+ (exePath.c_str(), SHELL)).c_str());
|
|
|
#endif
|
|
|
|
|
|
if(targetBuilds || target.GetType() == cmTarget::OBJECT_LIBRARY)
|
|
@@ -1884,9 +1879,9 @@ void cmLocalVisualStudio6Generator
|
|
|
}
|
|
|
dir += "$(IntDir)";
|
|
|
options += "# ADD LINK32 /LIBPATH:";
|
|
|
- options += this->ConvertToOptionallyRelativeOutputPath(dir.c_str());
|
|
|
+ options += this->ConvertToOutputFormat(dir.c_str(), SHELL);
|
|
|
options += " /LIBPATH:";
|
|
|
- options += this->ConvertToOptionallyRelativeOutputPath(d->c_str());
|
|
|
+ options += this->ConvertToOutputFormat(d->c_str(), SHELL);
|
|
|
options += "\n";
|
|
|
}
|
|
|
}
|
|
@@ -1897,7 +1892,7 @@ void cmLocalVisualStudio6Generator
|
|
|
if(l->IsPath)
|
|
|
{
|
|
|
options +=
|
|
|
- this->ConvertToOptionallyRelativeOutputPath(l->Value.c_str());
|
|
|
+ this->ConvertToOutputFormat(l->Value.c_str(), SHELL);
|
|
|
}
|
|
|
else if (!l->Target
|
|
|
|| l->Target->GetType() != cmTarget::INTERFACE_LIBRARY)
|
|
@@ -1933,7 +1928,7 @@ void cmLocalVisualStudio6Generator
|
|
|
options += "# ADD ";
|
|
|
options += tool;
|
|
|
options += "32 ";
|
|
|
- options += this->ConvertToOptionallyRelativeOutputPath(oi->c_str());
|
|
|
+ options += this->ConvertToOutputFormat(oi->c_str(), SHELL);
|
|
|
options += "\n";
|
|
|
}
|
|
|
}
|