Merge topic 'minor-cleanups'
13a37f5f cmMakefile: Fix typo in comment 958508bb cmMakefile: Fix style 91a829c1 Makefiles: Remove unused variable e0213882 cmTarget: Remove obsolete member 0554c2c9 cmTarget: Fix style b22e5d0a Remove some obsolete declarations ce43ed2c Use LocalGenerator when possible d90c9738 Makefiles: Remove some unneeded casts 331023ae Export: Remove unused variable a03f3d0e cmFunctionBlocker: Constify method d50c4220 Xcode: Fix typo in comment 803f1901 Xcode: Remove trailing semicolon
This commit is contained in:
commit
2fd5fd1f4d
@ -13,7 +13,6 @@
|
|||||||
#define cmComputeLinkDepends_h
|
#define cmComputeLinkDepends_h
|
||||||
|
|
||||||
#include "cmStandardIncludes.h"
|
#include "cmStandardIncludes.h"
|
||||||
#include "cmTarget.h"
|
|
||||||
#include "cmLinkItem.h"
|
#include "cmLinkItem.h"
|
||||||
|
|
||||||
#include "cmGraphAdjacencyList.h"
|
#include "cmGraphAdjacencyList.h"
|
||||||
|
@ -36,7 +36,6 @@ void cmExportBuildFileGenerator::Compute(cmLocalGenerator* lg)
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmExportBuildFileGenerator::GenerateMainFile(std::ostream& os)
|
bool cmExportBuildFileGenerator::GenerateMainFile(std::ostream& os)
|
||||||
{
|
{
|
||||||
std::vector<cmGeneratorTarget*> allTargets;
|
|
||||||
{
|
{
|
||||||
std::string expectedTargets;
|
std::string expectedTargets;
|
||||||
std::string sep;
|
std::string sep;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
#include "cmSourceFile.h"
|
#include "cmSourceFile.h"
|
||||||
#include "cmGeneratedFileStream.h"
|
#include "cmGeneratedFileStream.h"
|
||||||
#include "cmTarget.h"
|
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
|
|
||||||
#include <cmsys/SystemTools.hxx>
|
#include <cmsys/SystemTools.hxx>
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#include "cmExternalMakefileProjectGenerator.h"
|
#include "cmExternalMakefileProjectGenerator.h"
|
||||||
|
|
||||||
class cmLocalGenerator;
|
class cmLocalGenerator;
|
||||||
class cmMakefile;
|
|
||||||
class cmTarget;
|
|
||||||
class cmGeneratedFileStream;
|
class cmGeneratedFileStream;
|
||||||
|
|
||||||
/** \class cmExtraKateGenerator
|
/** \class cmExtraKateGenerator
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
/** Set/Get the context in which this blocker is created. */
|
/** Set/Get the context in which this blocker is created. */
|
||||||
void SetStartingContext(cmListFileContext const& lfc)
|
void SetStartingContext(cmListFileContext const& lfc)
|
||||||
{ this->StartingContext = lfc; }
|
{ this->StartingContext = lfc; }
|
||||||
cmListFileContext const& GetStartingContext()
|
cmListFileContext const& GetStartingContext() const
|
||||||
{ return this->StartingContext; }
|
{ return this->StartingContext; }
|
||||||
private:
|
private:
|
||||||
cmListFileContext StartingContext;
|
cmListFileContext StartingContext;
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include "cmGeneratorExpressionDAGChecker.h"
|
#include "cmGeneratorExpressionDAGChecker.h"
|
||||||
|
|
||||||
#include "cmMakefile.h"
|
|
||||||
#include "cmLocalGenerator.h"
|
#include "cmLocalGenerator.h"
|
||||||
#include "cmAlgorithms.h"
|
#include "cmAlgorithms.h"
|
||||||
|
|
||||||
|
@ -12,13 +12,11 @@
|
|||||||
#ifndef cmGeneratorExpressionEvaluator_h
|
#ifndef cmGeneratorExpressionEvaluator_h
|
||||||
#define cmGeneratorExpressionEvaluator_h
|
#define cmGeneratorExpressionEvaluator_h
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "cmListFileCache.h"
|
#include "cmListFileCache.h"
|
||||||
#include "cmGeneratorExpressionContext.h"
|
#include "cmGeneratorExpressionContext.h"
|
||||||
|
|
||||||
class cmTarget;
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
struct cmGeneratorExpressionDAGChecker;
|
struct cmGeneratorExpressionDAGChecker;
|
||||||
struct cmGeneratorExpressionNode;
|
struct cmGeneratorExpressionNode;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "cmGlobalGenerator.h"
|
#include "cmGlobalGenerator.h"
|
||||||
#include "cmAlgorithms.h"
|
#include "cmAlgorithms.h"
|
||||||
#include "cmOutputConverter.h"
|
#include "cmOutputConverter.h"
|
||||||
|
#include "cmMakefile.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
std::string cmGeneratorExpressionNode::EvaluateDependentExpression(
|
std::string cmGeneratorExpressionNode::EvaluateDependentExpression(
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
#ifndef cmGeneratorExpressionNode_h
|
#ifndef cmGeneratorExpressionNode_h
|
||||||
#define cmGeneratorExpressionNode_h
|
#define cmGeneratorExpressionNode_h
|
||||||
|
|
||||||
#include "cmMakefile.h"
|
|
||||||
|
|
||||||
#include "cmGeneratorExpressionEvaluator.h"
|
#include "cmGeneratorExpressionEvaluator.h"
|
||||||
#include "cmGeneratorExpressionParser.h"
|
#include "cmGeneratorExpressionParser.h"
|
||||||
#include "cmGeneratorExpressionDAGChecker.h"
|
#include "cmGeneratorExpressionDAGChecker.h"
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
#include "cmListFileCache.h"
|
#include "cmListFileCache.h"
|
||||||
|
|
||||||
class cmMakefile;
|
|
||||||
class cmTarget;
|
|
||||||
struct cmGeneratorExpressionEvaluator;
|
struct cmGeneratorExpressionEvaluator;
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
#include "cmGeneratedFileStream.h"
|
#include "cmGeneratedFileStream.h"
|
||||||
#include "cmSourceFile.h"
|
|
||||||
#include "cmGeneratorTarget.h"
|
#include "cmGeneratorTarget.h"
|
||||||
#include "cmAlgorithms.h"
|
#include "cmAlgorithms.h"
|
||||||
|
|
||||||
@ -158,8 +157,7 @@ void cmGlobalUnixMakefileGenerator3::Generate()
|
|||||||
}
|
}
|
||||||
for(unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
for(unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3 *lg =
|
cmLocalGenerator *lg = this->LocalGenerators[i];
|
||||||
static_cast<cmLocalUnixMakefileGenerator3 *>(this->LocalGenerators[i]);
|
|
||||||
std::string markFileName = lg->GetCurrentBinaryDirectory();
|
std::string markFileName = lg->GetCurrentBinaryDirectory();
|
||||||
markFileName += "/";
|
markFileName += "/";
|
||||||
markFileName += cmake::GetCMakeFilesDirectory();
|
markFileName += cmake::GetCMakeFilesDirectory();
|
||||||
@ -982,7 +980,7 @@ cmGlobalUnixMakefileGenerator3
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
size_t
|
size_t
|
||||||
cmGlobalUnixMakefileGenerator3
|
cmGlobalUnixMakefileGenerator3
|
||||||
::CountProgressMarksInAll(cmLocalUnixMakefileGenerator3* lg)
|
::CountProgressMarksInAll(cmLocalGenerator* lg)
|
||||||
{
|
{
|
||||||
size_t count = 0;
|
size_t count = 0;
|
||||||
std::set<cmGeneratorTarget const*> emitted;
|
std::set<cmGeneratorTarget const*> emitted;
|
||||||
|
@ -198,7 +198,7 @@ protected:
|
|||||||
|
|
||||||
size_t CountProgressMarksInTarget(cmGeneratorTarget const* target,
|
size_t CountProgressMarksInTarget(cmGeneratorTarget const* target,
|
||||||
std::set<cmGeneratorTarget const*>& emitted);
|
std::set<cmGeneratorTarget const*>& emitted);
|
||||||
size_t CountProgressMarksInAll(cmLocalUnixMakefileGenerator3* lg);
|
size_t CountProgressMarksInAll(cmLocalGenerator* lg);
|
||||||
|
|
||||||
cmGeneratedFileStream *CommandDatabase;
|
cmGeneratedFileStream *CommandDatabase;
|
||||||
private:
|
private:
|
||||||
|
@ -146,7 +146,7 @@ void cmGlobalVisualStudioGenerator::AddExtraIDETargets()
|
|||||||
void cmGlobalVisualStudioGenerator
|
void cmGlobalVisualStudioGenerator
|
||||||
::ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const
|
::ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const
|
||||||
{
|
{
|
||||||
std::string dir = gt->Makefile->GetCurrentBinaryDirectory();
|
std::string dir = gt->LocalGenerator->GetCurrentBinaryDirectory();
|
||||||
dir += "/";
|
dir += "/";
|
||||||
std::string tgtDir = gt->LocalGenerator->GetTargetDirectory(gt);
|
std::string tgtDir = gt->LocalGenerator->GetTargetDirectory(gt);
|
||||||
if(!tgtDir.empty())
|
if(!tgtDir.empty())
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
============================================================================*/
|
============================================================================*/
|
||||||
#include "cmInstallDirectoryGenerator.h"
|
#include "cmInstallDirectoryGenerator.h"
|
||||||
|
|
||||||
#include "cmTarget.h"
|
|
||||||
#include "cmGeneratorExpression.h"
|
#include "cmGeneratorExpression.h"
|
||||||
#include "cmLocalGenerator.h"
|
#include "cmLocalGenerator.h"
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ void cmLocalNinjaGenerator::Generate()
|
|||||||
// Compute the path to use when referencing the current output
|
// Compute the path to use when referencing the current output
|
||||||
// directory from the top output directory.
|
// directory from the top output directory.
|
||||||
this->HomeRelativeOutputPath =
|
this->HomeRelativeOutputPath =
|
||||||
this->Convert(this->Makefile->GetCurrentBinaryDirectory(), HOME_OUTPUT);
|
this->Convert(this->GetCurrentBinaryDirectory(), HOME_OUTPUT);
|
||||||
if(this->HomeRelativeOutputPath == ".")
|
if(this->HomeRelativeOutputPath == ".")
|
||||||
{
|
{
|
||||||
this->HomeRelativeOutputPath = "";
|
this->HomeRelativeOutputPath = "";
|
||||||
|
@ -144,7 +144,7 @@ void cmLocalUnixMakefileGenerator3::ComputeHomeRelativeOutputPath()
|
|||||||
// Compute the path to use when referencing the current output
|
// Compute the path to use when referencing the current output
|
||||||
// directory from the top output directory.
|
// directory from the top output directory.
|
||||||
this->HomeRelativeOutputPath =
|
this->HomeRelativeOutputPath =
|
||||||
this->Convert(this->Makefile->GetCurrentBinaryDirectory(), HOME_OUTPUT);
|
this->Convert(this->GetCurrentBinaryDirectory(), HOME_OUTPUT);
|
||||||
if(this->HomeRelativeOutputPath == ".")
|
if(this->HomeRelativeOutputPath == ".")
|
||||||
{
|
{
|
||||||
this->HomeRelativeOutputPath = "";
|
this->HomeRelativeOutputPath = "";
|
||||||
@ -173,7 +173,6 @@ void cmLocalUnixMakefileGenerator3::ComputeObjectFilenames(
|
|||||||
void cmLocalUnixMakefileGenerator3::
|
void cmLocalUnixMakefileGenerator3::
|
||||||
GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
||||||
{
|
{
|
||||||
std::set<std::string> emitted;
|
|
||||||
std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets();
|
std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets();
|
||||||
for(std::vector<cmGeneratorTarget*>::iterator ti = targets.begin();
|
for(std::vector<cmGeneratorTarget*>::iterator ti = targets.begin();
|
||||||
ti != targets.end(); ++ti)
|
ti != targets.end(); ++ti)
|
||||||
@ -503,7 +502,7 @@ void cmLocalUnixMakefileGenerator3
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmLocalUnixMakefileGenerator3::WriteDirectoryInformationFile()
|
void cmLocalUnixMakefileGenerator3::WriteDirectoryInformationFile()
|
||||||
{
|
{
|
||||||
std::string infoFileName = this->Makefile->GetCurrentBinaryDirectory();
|
std::string infoFileName = this->GetCurrentBinaryDirectory();
|
||||||
infoFileName += cmake::GetCMakeFilesDirectory();
|
infoFileName += cmake::GetCMakeFilesDirectory();
|
||||||
infoFileName += "/CMakeDirectoryInformation.cmake";
|
infoFileName += "/CMakeDirectoryInformation.cmake";
|
||||||
|
|
||||||
@ -567,7 +566,7 @@ std::string
|
|||||||
cmLocalUnixMakefileGenerator3
|
cmLocalUnixMakefileGenerator3
|
||||||
::ConvertToFullPath(const std::string& localPath)
|
::ConvertToFullPath(const std::string& localPath)
|
||||||
{
|
{
|
||||||
std::string dir = this->Makefile->GetCurrentBinaryDirectory();
|
std::string dir = this->GetCurrentBinaryDirectory();
|
||||||
dir += "/";
|
dir += "/";
|
||||||
dir += localPath;
|
dir += localPath;
|
||||||
return dir;
|
return dir;
|
||||||
@ -1064,7 +1063,7 @@ cmLocalUnixMakefileGenerator3
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if the command specified a working directory use it.
|
// if the command specified a working directory use it.
|
||||||
std::string dir = this->Makefile->GetCurrentBinaryDirectory();
|
std::string dir = this->GetCurrentBinaryDirectory();
|
||||||
std::string workingDir = ccg.GetWorkingDirectory();
|
std::string workingDir = ccg.GetWorkingDirectory();
|
||||||
if(!workingDir.empty())
|
if(!workingDir.empty())
|
||||||
{
|
{
|
||||||
@ -1214,7 +1213,7 @@ cmLocalUnixMakefileGenerator3
|
|||||||
const std::vector<std::string>& files,
|
const std::vector<std::string>& files,
|
||||||
cmGeneratorTarget* target, const char* filename)
|
cmGeneratorTarget* target, const char* filename)
|
||||||
{
|
{
|
||||||
std::string cleanfile = this->Makefile->GetCurrentBinaryDirectory();
|
std::string cleanfile = this->GetCurrentBinaryDirectory();
|
||||||
cleanfile += "/";
|
cleanfile += "/";
|
||||||
cleanfile += this->GetTargetDirectory(target);
|
cleanfile += this->GetTargetDirectory(target);
|
||||||
cleanfile += "/cmake_clean";
|
cleanfile += "/cmake_clean";
|
||||||
@ -1493,7 +1492,7 @@ bool cmLocalUnixMakefileGenerator3::UpdateDependencies(const char* tgtInfo,
|
|||||||
// If the directory information is newer than depend.internal, include dirs
|
// If the directory information is newer than depend.internal, include dirs
|
||||||
// may have changed. In this case discard all old dependencies.
|
// may have changed. In this case discard all old dependencies.
|
||||||
bool needRescanDirInfo = false;
|
bool needRescanDirInfo = false;
|
||||||
std::string dirInfoFile = this->Makefile->GetCurrentBinaryDirectory();
|
std::string dirInfoFile = this->GetCurrentBinaryDirectory();
|
||||||
dirInfoFile += cmake::GetCMakeFilesDirectory();
|
dirInfoFile += cmake::GetCMakeFilesDirectory();
|
||||||
dirInfoFile += "/CMakeDirectoryInformation.cmake";
|
dirInfoFile += "/CMakeDirectoryInformation.cmake";
|
||||||
{
|
{
|
||||||
@ -1567,7 +1566,7 @@ cmLocalUnixMakefileGenerator3
|
|||||||
// Read the directory information file.
|
// Read the directory information file.
|
||||||
cmMakefile* mf = this->Makefile;
|
cmMakefile* mf = this->Makefile;
|
||||||
bool haveDirectoryInfo = false;
|
bool haveDirectoryInfo = false;
|
||||||
std::string dirInfoFile = this->Makefile->GetCurrentBinaryDirectory();
|
std::string dirInfoFile = this->GetCurrentBinaryDirectory();
|
||||||
dirInfoFile += cmake::GetCMakeFilesDirectory();
|
dirInfoFile += cmake::GetCMakeFilesDirectory();
|
||||||
dirInfoFile += "/CMakeDirectoryInformation.cmake";
|
dirInfoFile += "/CMakeDirectoryInformation.cmake";
|
||||||
if(mf->ReadListFile(dirInfoFile.c_str()) &&
|
if(mf->ReadListFile(dirInfoFile.c_str()) &&
|
||||||
@ -1828,7 +1827,7 @@ void cmLocalUnixMakefileGenerator3
|
|||||||
std::vector<std::string> commands;
|
std::vector<std::string> commands;
|
||||||
|
|
||||||
// Write the all rule.
|
// Write the all rule.
|
||||||
std::string recursiveTarget = this->Makefile->GetCurrentBinaryDirectory();
|
std::string recursiveTarget = this->GetCurrentBinaryDirectory();
|
||||||
recursiveTarget += "/all";
|
recursiveTarget += "/all";
|
||||||
|
|
||||||
depends.push_back("cmake_check_build_system");
|
depends.push_back("cmake_check_build_system");
|
||||||
@ -1872,7 +1871,7 @@ void cmLocalUnixMakefileGenerator3
|
|||||||
depends, commands, true);
|
depends, commands, true);
|
||||||
|
|
||||||
// Write the clean rule.
|
// Write the clean rule.
|
||||||
recursiveTarget = this->Makefile->GetCurrentBinaryDirectory();
|
recursiveTarget = this->GetCurrentBinaryDirectory();
|
||||||
recursiveTarget += "/clean";
|
recursiveTarget += "/clean";
|
||||||
commands.clear();
|
commands.clear();
|
||||||
depends.clear();
|
depends.clear();
|
||||||
@ -1890,7 +1889,7 @@ void cmLocalUnixMakefileGenerator3
|
|||||||
depends, commands, true);
|
depends, commands, true);
|
||||||
|
|
||||||
// Write the preinstall rule.
|
// Write the preinstall rule.
|
||||||
recursiveTarget = this->Makefile->GetCurrentBinaryDirectory();
|
recursiveTarget = this->GetCurrentBinaryDirectory();
|
||||||
recursiveTarget += "/preinstall";
|
recursiveTarget += "/preinstall";
|
||||||
commands.clear();
|
commands.clear();
|
||||||
depends.clear();
|
depends.clear();
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
See the License for more information.
|
See the License for more information.
|
||||||
============================================================================*/
|
============================================================================*/
|
||||||
#include "cmLocalVisualStudio10Generator.h"
|
#include "cmLocalVisualStudio10Generator.h"
|
||||||
#include "cmTarget.h"
|
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
#include "cmVisualStudio10TargetGenerator.h"
|
#include "cmVisualStudio10TargetGenerator.h"
|
||||||
#include "cmGlobalVisualStudio10Generator.h"
|
#include "cmGlobalVisualStudio10Generator.h"
|
||||||
|
@ -2172,7 +2172,7 @@ cmMakefile::GetSourceGroup(const std::vector<std::string>&name) const
|
|||||||
{
|
{
|
||||||
cmSourceGroup* sg = 0;
|
cmSourceGroup* sg = 0;
|
||||||
|
|
||||||
// first look for source group starting with the same as the one we wants
|
// first look for source group starting with the same as the one we want
|
||||||
for (std::vector<cmSourceGroup>::const_iterator
|
for (std::vector<cmSourceGroup>::const_iterator
|
||||||
sgIt = this->SourceGroups.begin();
|
sgIt = this->SourceGroups.begin();
|
||||||
sgIt != this->SourceGroups.end(); ++sgIt)
|
sgIt != this->SourceGroups.end(); ++sgIt)
|
||||||
@ -2205,7 +2205,7 @@ void cmMakefile::AddSourceGroup(const std::string& name,
|
|||||||
{
|
{
|
||||||
std::vector<std::string> nameVector;
|
std::vector<std::string> nameVector;
|
||||||
nameVector.push_back(name);
|
nameVector.push_back(name);
|
||||||
AddSourceGroup(nameVector, regex);
|
this->AddSourceGroup(nameVector, regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::AddSourceGroup(const std::vector<std::string>& name,
|
void cmMakefile::AddSourceGroup(const std::vector<std::string>& name,
|
||||||
|
@ -61,7 +61,6 @@ cmTarget::cmTarget()
|
|||||||
this->HaveInstallRule = false;
|
this->HaveInstallRule = false;
|
||||||
this->DLLPlatform = false;
|
this->DLLPlatform = false;
|
||||||
this->IsAndroid = false;
|
this->IsAndroid = false;
|
||||||
this->IsApple = false;
|
|
||||||
this->IsImportedTarget = false;
|
this->IsImportedTarget = false;
|
||||||
this->ImportedGloballyVisible = false;
|
this->ImportedGloballyVisible = false;
|
||||||
this->BuildInterfaceIncludesAppended = false;
|
this->BuildInterfaceIncludesAppended = false;
|
||||||
@ -99,9 +98,6 @@ void cmTarget::SetMakefile(cmMakefile* mf)
|
|||||||
strcmp(this->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME"),
|
strcmp(this->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME"),
|
||||||
"Android") == 0;
|
"Android") == 0;
|
||||||
|
|
||||||
// Check whether we are targeting an Apple platform.
|
|
||||||
this->IsApple = this->Makefile->IsOn("APPLE");
|
|
||||||
|
|
||||||
// Setup default property values.
|
// Setup default property values.
|
||||||
if (this->GetType() != cmState::INTERFACE_LIBRARY
|
if (this->GetType() != cmState::INTERFACE_LIBRARY
|
||||||
&& this->GetType() != cmState::UTILITY)
|
&& this->GetType() != cmState::UTILITY)
|
||||||
@ -300,7 +296,8 @@ void cmTarget::AddUtility(const std::string& u, cmMakefile *makefile)
|
|||||||
{
|
{
|
||||||
if(this->Utilities.insert(u).second && makefile)
|
if(this->Utilities.insert(u).second && makefile)
|
||||||
{
|
{
|
||||||
UtilityBacktraces.insert(std::make_pair(u, makefile->GetBacktrace()));
|
this->UtilityBacktraces.insert(
|
||||||
|
std::make_pair(u, makefile->GetBacktrace()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ class cmake;
|
|||||||
class cmMakefile;
|
class cmMakefile;
|
||||||
class cmSourceFile;
|
class cmSourceFile;
|
||||||
class cmGlobalGenerator;
|
class cmGlobalGenerator;
|
||||||
class cmComputeLinkInformation;
|
|
||||||
class cmListFileBacktrace;
|
class cmListFileBacktrace;
|
||||||
class cmTarget;
|
class cmTarget;
|
||||||
class cmGeneratorTarget;
|
class cmGeneratorTarget;
|
||||||
@ -349,7 +348,6 @@ private:
|
|||||||
bool RecordDependencies;
|
bool RecordDependencies;
|
||||||
bool DLLPlatform;
|
bool DLLPlatform;
|
||||||
bool IsAndroid;
|
bool IsAndroid;
|
||||||
bool IsApple;
|
|
||||||
bool IsImportedTarget;
|
bool IsImportedTarget;
|
||||||
bool ImportedGloballyVisible;
|
bool ImportedGloballyVisible;
|
||||||
bool BuildInterfaceIncludesAppended;
|
bool BuildInterfaceIncludesAppended;
|
||||||
|
@ -13,10 +13,8 @@
|
|||||||
|
|
||||||
#include "cmGeneratorExpression.h"
|
#include "cmGeneratorExpression.h"
|
||||||
#include "cmOutputConverter.h"
|
#include "cmOutputConverter.h"
|
||||||
#include "cmMakefile.h"
|
|
||||||
#include "cmLocalGenerator.h"
|
#include "cmLocalGenerator.h"
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
#include "cmTarget.h"
|
|
||||||
#include "cmTest.h"
|
#include "cmTest.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -75,7 +75,7 @@ public:
|
|||||||
}
|
}
|
||||||
static void Indent(int level, std::ostream& out);
|
static void Indent(int level, std::ostream& out);
|
||||||
void Print(std::ostream& out);
|
void Print(std::ostream& out);
|
||||||
virtual void PrintComment(std::ostream&) {};
|
virtual void PrintComment(std::ostream&) {}
|
||||||
|
|
||||||
static void PrintList(std::vector<cmXCodeObject*> const&,
|
static void PrintList(std::vector<cmXCodeObject*> const&,
|
||||||
std::ostream& out);
|
std::ostream& out);
|
||||||
@ -105,7 +105,7 @@ public:
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// serach the attribute list for an object of the specified type
|
// search the attribute list for an object of the specified type
|
||||||
cmXCodeObject* GetObject(cmXCodeObject::PBXType t)
|
cmXCodeObject* GetObject(cmXCodeObject::PBXType t)
|
||||||
{
|
{
|
||||||
for(std::vector<cmXCodeObject*>::iterator i = this->List.begin();
|
for(std::vector<cmXCodeObject*>::iterator i = this->List.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user