|
@@ -21,23 +21,24 @@
|
|
|
|
|
|
std::string const cmGhsMultiTargetGenerator::DDOption("-dynamic");
|
|
|
|
|
|
-cmGhsMultiTargetGenerator::cmGhsMultiTargetGenerator(cmTarget *target)
|
|
|
- : Target(target)
|
|
|
+cmGhsMultiTargetGenerator::cmGhsMultiTargetGenerator(cmGeneratorTarget *target)
|
|
|
+ : Target(target->Target)
|
|
|
+ , GeneratorTarget(target)
|
|
|
, LocalGenerator(static_cast<cmLocalGhsMultiGenerator *>(
|
|
|
- target->GetMakefile()->GetLocalGenerator()))
|
|
|
- , Makefile(target->GetMakefile())
|
|
|
- , TargetGroup(DetermineIfTargetGroup(target))
|
|
|
+ target->GetLocalGenerator()))
|
|
|
+ , Makefile(target->Target->GetMakefile())
|
|
|
+ , TargetGroup(DetermineIfTargetGroup(target->Target))
|
|
|
, DynamicDownload(false)
|
|
|
{
|
|
|
- this->RelBuildFilePath = this->GetRelBuildFilePath(target);
|
|
|
+ this->RelBuildFilePath = this->GetRelBuildFilePath(target->Target);
|
|
|
|
|
|
this->RelOutputFileName =
|
|
|
this->RelBuildFilePath + this->Target->GetName() + ".a";
|
|
|
|
|
|
this->RelBuildFileName = this->RelBuildFilePath;
|
|
|
- this->RelBuildFileName += this->GetBuildFileName(target);
|
|
|
+ this->RelBuildFileName += this->GetBuildFileName(target->Target);
|
|
|
|
|
|
- std::string absPathToRoot = this->GetAbsPathToRoot(target);
|
|
|
+ std::string absPathToRoot = this->GetAbsPathToRoot(target->Target);
|
|
|
absPathToRoot = this->AddSlashIfNeededToPath(absPathToRoot);
|
|
|
this->AbsBuildFilePath = absPathToRoot + this->RelBuildFilePath;
|
|
|
this->AbsBuildFileName = absPathToRoot + this->RelBuildFileName;
|
|
@@ -373,7 +374,6 @@ void cmGhsMultiTargetGenerator::WriteTargetLinkLibraries()
|
|
|
cmTarget *tg(GetGlobalGenerator()->FindTarget(libName));
|
|
|
if (NULL != tg)
|
|
|
{
|
|
|
- cmGhsMultiTargetGenerator gmtg(tg);
|
|
|
libName = tg->GetName() + ".a";
|
|
|
}
|
|
|
*this->GetFolderBuildStreams() << " -l\"" << libName << "\""
|