VS: Port WriteUtilityDepends to cmGeneratorTarget
This commit is contained in:
parent
600af01d41
commit
97b3768898
|
@ -383,12 +383,14 @@ void cmGlobalVisualStudio6Generator::WriteDSWHeader(std::ostream& fout)
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
std::string
|
||||
cmGlobalVisualStudio6Generator::WriteUtilityDepend(const cmTarget *target)
|
||||
cmGlobalVisualStudio6Generator::WriteUtilityDepend(
|
||||
const cmGeneratorTarget *target)
|
||||
{
|
||||
std::string pname = target->GetName();
|
||||
pname += "_UTILITY";
|
||||
pname = GetVS6TargetName(pname.c_str());
|
||||
std::string fname = target->GetMakefile()->GetCurrentBinaryDirectory();
|
||||
std::string fname =
|
||||
target->GetLocalGenerator()->GetCurrentBinaryDirectory();
|
||||
fname += "/";
|
||||
fname += pname;
|
||||
fname += ".dsp";
|
||||
|
|
|
@ -97,7 +97,7 @@ private:
|
|||
const std::string& name, const char* path,
|
||||
const std::set<std::string>& dependencies);
|
||||
void WriteDSWFooter(std::ostream& fout);
|
||||
virtual std::string WriteUtilityDepend(cmTarget const* target);
|
||||
virtual std::string WriteUtilityDepend(const cmGeneratorTarget *target);
|
||||
std::string MSDevCommand;
|
||||
bool MSDevCommandInitialized;
|
||||
std::string const& GetMSDevCommand();
|
||||
|
|
|
@ -888,13 +888,14 @@ void cmGlobalVisualStudio7Generator::WriteSLNHeader(std::ostream& fout)
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
std::string
|
||||
cmGlobalVisualStudio7Generator::WriteUtilityDepend(cmTarget const* target)
|
||||
cmGlobalVisualStudio7Generator::WriteUtilityDepend(
|
||||
cmGeneratorTarget const* target)
|
||||
{
|
||||
std::vector<std::string> configs;
|
||||
target->GetMakefile()->GetConfigurations(configs);
|
||||
target->Target->GetMakefile()->GetConfigurations(configs);
|
||||
std::string pname = target->GetName();
|
||||
pname += "_UTILITY";
|
||||
std::string fname = target->GetMakefile()->GetCurrentBinaryDirectory();
|
||||
std::string fname = target->GetLocalGenerator()->GetCurrentBinaryDirectory();
|
||||
fname += "/";
|
||||
fname += pname;
|
||||
fname += ".vcproj";
|
||||
|
|
|
@ -136,7 +136,7 @@ protected:
|
|||
cmLocalGenerator* root);
|
||||
virtual void WriteSLNFooter(std::ostream& fout);
|
||||
virtual void WriteSLNHeader(std::ostream& fout);
|
||||
virtual std::string WriteUtilityDepend(cmTarget const* target);
|
||||
virtual std::string WriteUtilityDepend(const cmGeneratorTarget *target);
|
||||
|
||||
virtual void WriteTargetsToSolution(
|
||||
std::ostream& fout,
|
||||
|
|
|
@ -514,7 +514,7 @@ cmGlobalVisualStudioGenerator::GetUtilityDepend(
|
|||
UtilityDependsMap::iterator i = this->UtilityDepends.find(target);
|
||||
if(i == this->UtilityDepends.end())
|
||||
{
|
||||
std::string name = this->WriteUtilityDepend(target->Target);
|
||||
std::string name = this->WriteUtilityDepend(target);
|
||||
UtilityDependsMap::value_type entry(target, name);
|
||||
i = this->UtilityDepends.insert(entry).first;
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ protected:
|
|||
|
||||
bool CheckTargetLinks(cmTarget& target, const std::string& name);
|
||||
std::string GetUtilityForTarget(cmTarget& target, const std::string&);
|
||||
virtual std::string WriteUtilityDepend(cmTarget const*) = 0;
|
||||
virtual std::string WriteUtilityDepend(cmGeneratorTarget const*) = 0;
|
||||
std::string GetUtilityDepend(const cmGeneratorTarget *target);
|
||||
typedef std::map<cmGeneratorTarget const*, std::string> UtilityDependsMap;
|
||||
UtilityDependsMap UtilityDepends;
|
||||
|
|
Loading…
Reference in New Issue