|
@@ -324,11 +324,11 @@ void cmMakefileTargetGenerator::MacOSXContentGeneratorType::operator()(
|
|
|
this->Generator->LocalGenerator->AppendEcho(
|
|
|
commands, copyEcho, cmLocalUnixMakefileGenerator3::EchoBuild);
|
|
|
std::string copyCommand = "$(CMAKE_COMMAND) -E copy ";
|
|
|
- copyCommand += this->Generator->Convert(input, cmOutputConverter::NONE,
|
|
|
- cmOutputConverter::SHELL);
|
|
|
+ copyCommand += this->Generator->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ input, cmOutputConverter::SHELL);
|
|
|
copyCommand += " ";
|
|
|
- copyCommand += this->Generator->Convert(output, cmOutputConverter::NONE,
|
|
|
- cmOutputConverter::SHELL);
|
|
|
+ copyCommand += this->Generator->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ output, cmOutputConverter::SHELL);
|
|
|
commands.push_back(copyCommand);
|
|
|
this->Generator->LocalGenerator->WriteMakeRule(
|
|
|
*this->Generator->BuildFileStream, CM_NULLPTR, output, depends, commands,
|
|
@@ -464,8 +464,8 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
|
|
}
|
|
|
|
|
|
// Get the output paths for source and object files.
|
|
|
- std::string sourceFile = this->Convert(
|
|
|
- source.GetFullPath(), cmOutputConverter::NONE, cmOutputConverter::SHELL);
|
|
|
+ std::string sourceFile = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ source.GetFullPath(), cmOutputConverter::SHELL);
|
|
|
|
|
|
// Construct the build message.
|
|
|
std::vector<std::string> no_commands;
|
|
@@ -516,8 +516,8 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
|
|
targetOutPathReal =
|
|
|
this->Convert(targetFullPathReal, cmOutputConverter::START_OUTPUT,
|
|
|
cmOutputConverter::SHELL);
|
|
|
- targetOutPathPDB = this->Convert(
|
|
|
- targetFullPathPDB, cmOutputConverter::NONE, cmOutputConverter::SHELL);
|
|
|
+ targetOutPathPDB = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ targetFullPathPDB, cmOutputConverter::SHELL);
|
|
|
targetOutPathCompilePDB =
|
|
|
this->Convert(targetFullPathCompilePDB, cmOutputConverter::START_OUTPUT,
|
|
|
cmOutputConverter::SHELL);
|
|
@@ -539,7 +539,7 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
|
|
vars.TargetCompilePDB = targetOutPathCompilePDB.c_str();
|
|
|
vars.Source = sourceFile.c_str();
|
|
|
std::string shellObj =
|
|
|
- this->Convert(obj, cmOutputConverter::NONE, cmOutputConverter::SHELL);
|
|
|
+ this->LocalGenerator->ConvertToOutputFormat(obj, cmOutputConverter::SHELL);
|
|
|
vars.Object = shellObj.c_str();
|
|
|
std::string objectDir = this->GeneratorTarget->GetSupportDirectory();
|
|
|
objectDir = this->Convert(objectDir, cmOutputConverter::START_OUTPUT,
|
|
@@ -699,8 +699,8 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
|
|
std::vector<std::string> preprocessCommands;
|
|
|
cmSystemTools::ExpandListArgument(preprocessRule, preprocessCommands);
|
|
|
|
|
|
- std::string shellObjI = this->Convert(objI, cmOutputConverter::NONE,
|
|
|
- cmOutputConverter::SHELL);
|
|
|
+ std::string shellObjI = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ objI, cmOutputConverter::SHELL);
|
|
|
vars.PreprocessedSource = shellObjI.c_str();
|
|
|
|
|
|
// Expand placeholders in the commands.
|
|
@@ -746,8 +746,8 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
|
|
std::vector<std::string> assemblyCommands;
|
|
|
cmSystemTools::ExpandListArgument(assemblyRule, assemblyCommands);
|
|
|
|
|
|
- std::string shellObjS = this->Convert(objS, cmOutputConverter::NONE,
|
|
|
- cmOutputConverter::SHELL);
|
|
|
+ std::string shellObjS = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ objS, cmOutputConverter::SHELL);
|
|
|
vars.AssemblySource = shellObjS.c_str();
|
|
|
|
|
|
// Expand placeholders in the commands.
|
|
@@ -1576,8 +1576,8 @@ void cmMakefileTargetGenerator::CreateLinkLibs(
|
|
|
|
|
|
// Reference the response file.
|
|
|
linkLibs = responseFlag;
|
|
|
- linkLibs += this->Convert(link_rsp, cmOutputConverter::NONE,
|
|
|
- cmOutputConverter::SHELL);
|
|
|
+ linkLibs += this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ link_rsp, cmOutputConverter::SHELL);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1625,8 +1625,8 @@ void cmMakefileTargetGenerator::CreateObjectLists(
|
|
|
|
|
|
// Reference the response file.
|
|
|
buildObjs += responseFlag;
|
|
|
- buildObjs += this->Convert(objects_rsp, cmOutputConverter::NONE,
|
|
|
- cmOutputConverter::SHELL);
|
|
|
+ buildObjs += this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ objects_rsp, cmOutputConverter::SHELL);
|
|
|
}
|
|
|
} else if (useLinkScript) {
|
|
|
if (!useArchiveRules) {
|
|
@@ -1683,8 +1683,8 @@ void cmMakefileTargetGenerator::GenDefFile(
|
|
|
name_of_def_file += std::string("/") + this->GeneratorTarget->GetName();
|
|
|
name_of_def_file += ".def";
|
|
|
std::string cmd = cmSystemTools::GetCMakeCommand();
|
|
|
- cmd =
|
|
|
- this->Convert(cmd, cmOutputConverter::NONE, cmOutputConverter::SHELL);
|
|
|
+ cmd = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ cmd, cmOutputConverter::SHELL);
|
|
|
cmd += " -E __create_def ";
|
|
|
cmd += this->Convert(name_of_def_file, cmOutputConverter::START_OUTPUT,
|
|
|
cmOutputConverter::SHELL);
|