mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
cmComputeTargetDepends: Change API to use cmGeneratorTarget.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
class cmComputeComponentGraph;
|
||||
class cmGlobalGenerator;
|
||||
class cmLinkItem;
|
||||
class cmTarget;
|
||||
class cmGeneratorTarget;
|
||||
class cmTargetDependSet;
|
||||
|
||||
/** \class cmComputeTargetDepends
|
||||
@@ -39,9 +39,10 @@ public:
|
||||
|
||||
bool Compute();
|
||||
|
||||
std::vector<cmTarget const*> const&
|
||||
std::vector<cmGeneratorTarget const*> const&
|
||||
GetTargets() const { return this->Targets; }
|
||||
void GetTargetDirectDepends(cmTarget const* t, cmTargetDependSet& deps);
|
||||
void GetTargetDirectDepends(cmGeneratorTarget const* t,
|
||||
cmTargetDependSet& deps);
|
||||
private:
|
||||
void CollectTargets();
|
||||
void CollectDepends();
|
||||
@@ -49,13 +50,14 @@ private:
|
||||
void AddTargetDepend(int depender_index,
|
||||
cmLinkItem const& dependee_name,
|
||||
bool linking);
|
||||
void AddTargetDepend(int depender_index, cmTarget const* dependee,
|
||||
void AddTargetDepend(int depender_index, cmGeneratorTarget const* dependee,
|
||||
bool linking);
|
||||
bool ComputeFinalDepends(cmComputeComponentGraph const& ccg);
|
||||
void AddInterfaceDepends(int depender_index,
|
||||
cmLinkItem const& dependee_name,
|
||||
std::set<std::string> &emitted);
|
||||
void AddInterfaceDepends(int depender_index, cmTarget const* dependee,
|
||||
void AddInterfaceDepends(int depender_index,
|
||||
cmGeneratorTarget const* dependee,
|
||||
const std::string& config,
|
||||
std::set<std::string> &emitted);
|
||||
cmGlobalGenerator* GlobalGenerator;
|
||||
@@ -63,8 +65,8 @@ private:
|
||||
bool NoCycles;
|
||||
|
||||
// Collect all targets.
|
||||
std::vector<cmTarget const*> Targets;
|
||||
std::map<cmTarget const*, int> TargetIndex;
|
||||
std::vector<cmGeneratorTarget const*> Targets;
|
||||
std::map<cmGeneratorTarget const*, int> TargetIndex;
|
||||
|
||||
// Represent the target dependency graph. The entry at each
|
||||
// top-level index corresponds to a depender whose dependencies are
|
||||
|
||||
Reference in New Issue
Block a user