Merge topic 'drop-old-vs-dependency'
4bb6e24 VS,Xcode: Drop incorrect legacy dependency trace (#14291)
This commit is contained in:
commit
ff6de6d325
@ -55,7 +55,6 @@ cmLocalGenerator::cmLocalGenerator()
|
|||||||
this->UseRelativePaths = false;
|
this->UseRelativePaths = false;
|
||||||
this->Configured = false;
|
this->Configured = false;
|
||||||
this->EmitUniversalBinaryFlags = true;
|
this->EmitUniversalBinaryFlags = true;
|
||||||
this->IsMakefileGenerator = false;
|
|
||||||
this->RelativePathsConfigured = false;
|
this->RelativePathsConfigured = false;
|
||||||
this->PathConversionsSetup = false;
|
this->PathConversionsSetup = false;
|
||||||
this->BackwardsCompatibility = 0;
|
this->BackwardsCompatibility = 0;
|
||||||
@ -260,12 +259,7 @@ void cmLocalGenerator::TraceDependencies()
|
|||||||
cmTargets& targets = this->Makefile->GetTargets();
|
cmTargets& targets = this->Makefile->GetTargets();
|
||||||
for(cmTargets::iterator t = targets.begin(); t != targets.end(); ++t)
|
for(cmTargets::iterator t = targets.begin(); t != targets.end(); ++t)
|
||||||
{
|
{
|
||||||
const char* projectFilename = 0;
|
t->second.TraceDependencies();
|
||||||
if (this->IsMakefileGenerator == false) // only use of this variable
|
|
||||||
{
|
|
||||||
projectFilename = t->second.GetName();
|
|
||||||
}
|
|
||||||
t->second.TraceDependencies(projectFilename);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -441,8 +441,6 @@ protected:
|
|||||||
bool IgnoreLibPrefix;
|
bool IgnoreLibPrefix;
|
||||||
bool Configured;
|
bool Configured;
|
||||||
bool EmitUniversalBinaryFlags;
|
bool EmitUniversalBinaryFlags;
|
||||||
// A type flag is not nice. It's used only in TraceDependencies().
|
|
||||||
bool IsMakefileGenerator;
|
|
||||||
// Hack for ExpandRuleVariable until object-oriented version is
|
// Hack for ExpandRuleVariable until object-oriented version is
|
||||||
// committed.
|
// committed.
|
||||||
std::string TargetImplib;
|
std::string TargetImplib;
|
||||||
|
@ -27,7 +27,6 @@ cmLocalNinjaGenerator::cmLocalNinjaGenerator()
|
|||||||
, ConfigName("")
|
, ConfigName("")
|
||||||
, HomeRelativeOutputPath("")
|
, HomeRelativeOutputPath("")
|
||||||
{
|
{
|
||||||
this->IsMakefileGenerator = true;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
this->WindowsShell = true;
|
this->WindowsShell = true;
|
||||||
#endif
|
#endif
|
||||||
|
@ -92,7 +92,6 @@ cmLocalUnixMakefileGenerator3::cmLocalUnixMakefileGenerator3()
|
|||||||
this->SkipPreprocessedSourceRules = false;
|
this->SkipPreprocessedSourceRules = false;
|
||||||
this->SkipAssemblySourceRules = false;
|
this->SkipAssemblySourceRules = false;
|
||||||
this->MakeCommandEscapeTargetTwice = false;
|
this->MakeCommandEscapeTargetTwice = false;
|
||||||
this->IsMakefileGenerator = true;
|
|
||||||
this->BorlandMakeCurlyHack = false;
|
this->BorlandMakeCurlyHack = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1839,8 +1839,7 @@ bool cmTarget::IsBundleOnApple()
|
|||||||
class cmTargetTraceDependencies
|
class cmTargetTraceDependencies
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmTargetTraceDependencies(cmTarget* target, cmTargetInternals* internal,
|
cmTargetTraceDependencies(cmTarget* target, cmTargetInternals* internal);
|
||||||
const char* vsProjectFile);
|
|
||||||
void Trace();
|
void Trace();
|
||||||
private:
|
private:
|
||||||
cmTarget* Target;
|
cmTarget* Target;
|
||||||
@ -1864,8 +1863,7 @@ private:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmTargetTraceDependencies
|
cmTargetTraceDependencies
|
||||||
::cmTargetTraceDependencies(cmTarget* target, cmTargetInternals* internal,
|
::cmTargetTraceDependencies(cmTarget* target, cmTargetInternals* internal):
|
||||||
const char* vsProjectFile):
|
|
||||||
Target(target), Internal(internal)
|
Target(target), Internal(internal)
|
||||||
{
|
{
|
||||||
// Convenience.
|
// Convenience.
|
||||||
@ -1882,13 +1880,6 @@ cmTargetTraceDependencies
|
|||||||
this->QueueSource(*si);
|
this->QueueSource(*si);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Queue the VS project file to check dependencies on the rule to
|
|
||||||
// generate it.
|
|
||||||
if(vsProjectFile)
|
|
||||||
{
|
|
||||||
this->FollowName(vsProjectFile);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Queue pre-build, pre-link, and post-build rule dependencies.
|
// Queue pre-build, pre-link, and post-build rule dependencies.
|
||||||
this->CheckCustomCommands(this->Target->GetPreBuildCommands());
|
this->CheckCustomCommands(this->Target->GetPreBuildCommands());
|
||||||
this->CheckCustomCommands(this->Target->GetPreLinkCommands());
|
this->CheckCustomCommands(this->Target->GetPreLinkCommands());
|
||||||
@ -2107,7 +2098,7 @@ cmTargetTraceDependencies
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::TraceDependencies(const char* vsProjectFile)
|
void cmTarget::TraceDependencies()
|
||||||
{
|
{
|
||||||
// CMake-generated targets have no dependencies to trace. Normally tracing
|
// CMake-generated targets have no dependencies to trace. Normally tracing
|
||||||
// would find nothing anyway, but when building CMake itself the "install"
|
// would find nothing anyway, but when building CMake itself the "install"
|
||||||
@ -2119,7 +2110,7 @@ void cmTarget::TraceDependencies(const char* vsProjectFile)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use a helper object to trace the dependencies.
|
// Use a helper object to trace the dependencies.
|
||||||
cmTargetTraceDependencies tracer(this, this->Internal.Get(), vsProjectFile);
|
cmTargetTraceDependencies tracer(this, this->Internal.Get());
|
||||||
tracer.Trace();
|
tracer.Trace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ public:
|
|||||||
* Trace through the source files in this target and add al source files
|
* Trace through the source files in this target and add al source files
|
||||||
* that they depend on, used by all generators
|
* that they depend on, used by all generators
|
||||||
*/
|
*/
|
||||||
void TraceDependencies(const char* vsProjectFile);
|
void TraceDependencies();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make sure the full path to all source files is known.
|
* Make sure the full path to all source files is known.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user