cmLocalUnixMakefileGenerator3: Port API to cmGenertorTarget.
This commit is contained in:
parent
088fcbf733
commit
9f299a1225
|
@ -209,7 +209,7 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
||||||
}
|
}
|
||||||
LocalObjectInfo& info = localObjectFiles[objectName];
|
LocalObjectInfo& info = localObjectFiles[objectName];
|
||||||
info.HasSourceExtension = hasSourceExtension;
|
info.HasSourceExtension = hasSourceExtension;
|
||||||
info.push_back(LocalObjectEntry(gt->Target, sf->GetLanguage()));
|
info.push_back(LocalObjectEntry(gt, sf->GetLanguage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -389,7 +389,7 @@ cmLocalUnixMakefileGenerator3
|
||||||
t != info.end(); ++t)
|
t != info.end(); ++t)
|
||||||
{
|
{
|
||||||
std::string tgtMakefileName =
|
std::string tgtMakefileName =
|
||||||
this->GetRelativeTargetDirectory(*(t->Target));
|
this->GetRelativeTargetDirectory(*(t->Target->Target));
|
||||||
std::string targetName = tgtMakefileName;
|
std::string targetName = tgtMakefileName;
|
||||||
tgtMakefileName += "/build.make";
|
tgtMakefileName += "/build.make";
|
||||||
targetName += "/";
|
targetName += "/";
|
||||||
|
|
|
@ -254,10 +254,10 @@ private:
|
||||||
|
|
||||||
struct LocalObjectEntry
|
struct LocalObjectEntry
|
||||||
{
|
{
|
||||||
cmTarget* Target;
|
cmGeneratorTarget* Target;
|
||||||
std::string Language;
|
std::string Language;
|
||||||
LocalObjectEntry(): Target(0), Language() {}
|
LocalObjectEntry(): Target(0), Language() {}
|
||||||
LocalObjectEntry(cmTarget* t, const std::string& lang):
|
LocalObjectEntry(cmGeneratorTarget* t, const std::string& lang):
|
||||||
Target(t), Language(lang) {}
|
Target(t), Language(lang) {}
|
||||||
};
|
};
|
||||||
struct LocalObjectInfo: public std::vector<LocalObjectEntry>
|
struct LocalObjectInfo: public std::vector<LocalObjectEntry>
|
||||||
|
|
Loading…
Reference in New Issue