strings: Remove cmStdString references
Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
This commit is contained in:
parent
215b1addf0
commit
270eb96df0
@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
void SetLogger(cmCPackLog* logger) { this->Logger = logger; }
|
void SetLogger(cmCPackLog* logger) { this->Logger = logger; }
|
||||||
|
|
||||||
typedef std::map<cmStdString, cmStdString> DescriptionsMap;
|
typedef std::map<std::string, std::string> DescriptionsMap;
|
||||||
const DescriptionsMap& GetGeneratorsList() const
|
const DescriptionsMap& GetGeneratorsList() const
|
||||||
{ return this->GeneratorDescriptions; }
|
{ return this->GeneratorDescriptions; }
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ private:
|
|||||||
cmCPackGenerator* NewGeneratorInternal(const std::string& name);
|
cmCPackGenerator* NewGeneratorInternal(const std::string& name);
|
||||||
std::vector<cmCPackGenerator*> Generators;
|
std::vector<cmCPackGenerator*> Generators;
|
||||||
|
|
||||||
typedef std::map<cmStdString, CreateGeneratorCall*> t_GeneratorCreatorsMap;
|
typedef std::map<std::string, CreateGeneratorCall*> t_GeneratorCreatorsMap;
|
||||||
t_GeneratorCreatorsMap GeneratorCreators;
|
t_GeneratorCreatorsMap GeneratorCreators;
|
||||||
DescriptionsMap GeneratorDescriptions;
|
DescriptionsMap GeneratorDescriptions;
|
||||||
cmCPackLog* Logger;
|
cmCPackLog* Logger;
|
||||||
|
@ -68,7 +68,7 @@ int cpackUnknownArgument(const char*, void*)
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
struct cpackDefinitions
|
struct cpackDefinitions
|
||||||
{
|
{
|
||||||
typedef std::map<cmStdString, cmStdString> MapType;
|
typedef std::map<std::string, std::string> MapType;
|
||||||
MapType Map;
|
MapType Map;
|
||||||
cmCPackLog *Log;
|
cmCPackLog *Log;
|
||||||
};
|
};
|
||||||
|
@ -409,7 +409,7 @@ bool cmCTestBZR::UpdateImpl()
|
|||||||
{
|
{
|
||||||
opts = this->CTest->GetCTestConfiguration("BZRUpdateOptions");
|
opts = this->CTest->GetCTestConfiguration("BZRUpdateOptions");
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(opts.c_str());
|
std::vector<std::string> args = cmSystemTools::ParseArguments(opts.c_str());
|
||||||
|
|
||||||
// TODO: if(this->CTest->GetTestModel() == cmCTest::NIGHTLY)
|
// TODO: if(this->CTest->GetTestModel() == cmCTest::NIGHTLY)
|
||||||
|
|
||||||
@ -418,7 +418,7 @@ bool cmCTestBZR::UpdateImpl()
|
|||||||
bzr_update.push_back(this->CommandLineTool.c_str());
|
bzr_update.push_back(this->CommandLineTool.c_str());
|
||||||
bzr_update.push_back("pull");
|
bzr_update.push_back("pull");
|
||||||
|
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
bzr_update.push_back(ai->c_str());
|
bzr_update.push_back(ai->c_str());
|
||||||
|
@ -54,7 +54,7 @@ protected:
|
|||||||
std::string &cmakeOutString,
|
std::string &cmakeOutString,
|
||||||
std::string &cwd, cmake *cm);
|
std::string &cwd, cmake *cm);
|
||||||
|
|
||||||
cmStdString Output;
|
std::string Output;
|
||||||
|
|
||||||
std::string BuildGenerator;
|
std::string BuildGenerator;
|
||||||
std::string BuildGeneratorToolset;
|
std::string BuildGeneratorToolset;
|
||||||
|
@ -380,7 +380,7 @@ int cmCTestBuildHandler::ProcessHandler()
|
|||||||
|
|
||||||
// Create lists of regular expression strings for errors, error exceptions,
|
// Create lists of regular expression strings for errors, error exceptions,
|
||||||
// warnings and warning exceptions.
|
// warnings and warning exceptions.
|
||||||
std::vector<cmStdString>::size_type cc;
|
std::vector<std::string>::size_type cc;
|
||||||
for ( cc = 0; cmCTestErrorMatches[cc]; cc ++ )
|
for ( cc = 0; cmCTestErrorMatches[cc]; cc ++ )
|
||||||
{
|
{
|
||||||
this->CustomErrorMatches.push_back(cmCTestErrorMatches[cc]);
|
this->CustomErrorMatches.push_back(cmCTestErrorMatches[cc]);
|
||||||
@ -400,7 +400,7 @@ int cmCTestBuildHandler::ProcessHandler()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Pre-compile regular expressions objects for all regular expressions
|
// Pre-compile regular expressions objects for all regular expressions
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
|
|
||||||
#define cmCTestBuildHandlerPopulateRegexVector(strings, regexes) \
|
#define cmCTestBuildHandlerPopulateRegexVector(strings, regexes) \
|
||||||
regexes.clear(); \
|
regexes.clear(); \
|
||||||
@ -602,7 +602,7 @@ void cmCTestBuildHandler::GenerateXMLLaunched(std::ostream& os)
|
|||||||
// Sort XML fragments in chronological order.
|
// Sort XML fragments in chronological order.
|
||||||
cmFileTimeComparison ftc;
|
cmFileTimeComparison ftc;
|
||||||
FragmentCompare fragmentCompare(&ftc);
|
FragmentCompare fragmentCompare(&ftc);
|
||||||
typedef std::set<cmStdString, FragmentCompare> Fragments;
|
typedef std::set<std::string, FragmentCompare> Fragments;
|
||||||
Fragments fragments(fragmentCompare);
|
Fragments fragments(fragmentCompare);
|
||||||
|
|
||||||
// Identify fragments on disk.
|
// Identify fragments on disk.
|
||||||
@ -889,7 +889,7 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command,
|
|||||||
int* retVal, const char* dir, int timeout, std::ostream& ofs)
|
int* retVal, const char* dir, int timeout, std::ostream& ofs)
|
||||||
{
|
{
|
||||||
// First generate the command and arguments
|
// First generate the command and arguments
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(command);
|
std::vector<std::string> args = cmSystemTools::ParseArguments(command);
|
||||||
|
|
||||||
if(args.size() < 1)
|
if(args.size() < 1)
|
||||||
{
|
{
|
||||||
@ -897,7 +897,7 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command,
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<const char*> argv;
|
std::vector<const char*> argv;
|
||||||
for(std::vector<cmStdString>::const_iterator a = args.begin();
|
for(std::vector<std::string>::const_iterator a = args.begin();
|
||||||
a != args.end(); ++a)
|
a != args.end(); ++a)
|
||||||
{
|
{
|
||||||
argv.push_back(a->c_str());
|
argv.push_back(a->c_str());
|
||||||
@ -1133,7 +1133,7 @@ void cmCTestBuildHandler::ProcessBuffer(const char* data, int length,
|
|||||||
errorwarning.PostContext = "";
|
errorwarning.PostContext = "";
|
||||||
|
|
||||||
// Copy pre-context to report
|
// Copy pre-context to report
|
||||||
std::deque<cmStdString>::iterator pcit;
|
std::deque<std::string>::iterator pcit;
|
||||||
for ( pcit = this->PreContext.begin();
|
for ( pcit = this->PreContext.begin();
|
||||||
pcit != this->PreContext.end();
|
pcit != this->PreContext.end();
|
||||||
++pcit )
|
++pcit )
|
||||||
|
@ -97,10 +97,10 @@ private:
|
|||||||
double StartBuildTime;
|
double StartBuildTime;
|
||||||
double EndBuildTime;
|
double EndBuildTime;
|
||||||
|
|
||||||
std::vector<cmStdString> CustomErrorMatches;
|
std::vector<std::string> CustomErrorMatches;
|
||||||
std::vector<cmStdString> CustomErrorExceptions;
|
std::vector<std::string> CustomErrorExceptions;
|
||||||
std::vector<cmStdString> CustomWarningMatches;
|
std::vector<std::string> CustomWarningMatches;
|
||||||
std::vector<cmStdString> CustomWarningExceptions;
|
std::vector<std::string> CustomWarningExceptions;
|
||||||
std::vector<std::string> ReallyCustomWarningMatches;
|
std::vector<std::string> ReallyCustomWarningMatches;
|
||||||
std::vector<std::string> ReallyCustomWarningExceptions;
|
std::vector<std::string> ReallyCustomWarningExceptions;
|
||||||
std::vector<cmCTestCompileErrorWarningRex> ErrorWarningFileLineRegex;
|
std::vector<cmCTestCompileErrorWarningRex> ErrorWarningFileLineRegex;
|
||||||
@ -121,8 +121,8 @@ private:
|
|||||||
size_t BuildOutputLogSize;
|
size_t BuildOutputLogSize;
|
||||||
std::vector<char> CurrentProcessingLine;
|
std::vector<char> CurrentProcessingLine;
|
||||||
|
|
||||||
cmStdString SimplifySourceDir;
|
std::string SimplifySourceDir;
|
||||||
cmStdString SimplifyBuildDir;
|
std::string SimplifyBuildDir;
|
||||||
size_t OutputLineCounter;
|
size_t OutputLineCounter;
|
||||||
typedef std::vector<cmCTestBuildErrorWarning> t_ErrorsAndWarningsVector;
|
typedef std::vector<cmCTestBuildErrorWarning> t_ErrorsAndWarningsVector;
|
||||||
t_ErrorsAndWarningsVector ErrorsAndWarnings;
|
t_ErrorsAndWarningsVector ErrorsAndWarnings;
|
||||||
@ -130,7 +130,7 @@ private:
|
|||||||
size_t PostContextCount;
|
size_t PostContextCount;
|
||||||
size_t MaxPreContext;
|
size_t MaxPreContext;
|
||||||
size_t MaxPostContext;
|
size_t MaxPostContext;
|
||||||
std::deque<cmStdString> PreContext;
|
std::deque<std::string> PreContext;
|
||||||
|
|
||||||
int TotalErrors;
|
int TotalErrors;
|
||||||
int TotalWarnings;
|
int TotalWarnings;
|
||||||
|
@ -99,7 +99,7 @@ bool cmCTestCVS::UpdateImpl()
|
|||||||
opts = "-dP";
|
opts = "-dP";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(opts.c_str());
|
std::vector<std::string> args = cmSystemTools::ParseArguments(opts.c_str());
|
||||||
|
|
||||||
// Specify the start time for nightly testing.
|
// Specify the start time for nightly testing.
|
||||||
if(this->CTest->GetTestModel() == cmCTest::NIGHTLY)
|
if(this->CTest->GetTestModel() == cmCTest::NIGHTLY)
|
||||||
@ -112,7 +112,7 @@ bool cmCTestCVS::UpdateImpl()
|
|||||||
cvs_update.push_back(this->CommandLineTool.c_str());
|
cvs_update.push_back(this->CommandLineTool.c_str());
|
||||||
cvs_update.push_back("-z3");
|
cvs_update.push_back("-z3");
|
||||||
cvs_update.push_back("update");
|
cvs_update.push_back("update");
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
cvs_update.push_back(ai->c_str());
|
cvs_update.push_back(ai->c_str());
|
||||||
@ -308,7 +308,7 @@ bool cmCTestCVS::WriteXMLUpdates(std::ostream& xml)
|
|||||||
" Gathering version information (one . per updated file):\n"
|
" Gathering version information (one . per updated file):\n"
|
||||||
" " << std::flush);
|
" " << std::flush);
|
||||||
|
|
||||||
for(std::map<cmStdString, Directory>::const_iterator
|
for(std::map<std::string, Directory>::const_iterator
|
||||||
di = this->Dirs.begin(); di != this->Dirs.end(); ++di)
|
di = this->Dirs.begin(); di != this->Dirs.end(); ++di)
|
||||||
{
|
{
|
||||||
this->WriteXMLDirectory(xml, di->first, di->second);
|
this->WriteXMLDirectory(xml, di->first, di->second);
|
||||||
|
@ -32,8 +32,8 @@ private:
|
|||||||
virtual bool WriteXMLUpdates(std::ostream& xml);
|
virtual bool WriteXMLUpdates(std::ostream& xml);
|
||||||
|
|
||||||
// Update status for files in each directory.
|
// Update status for files in each directory.
|
||||||
class Directory: public std::map<cmStdString, PathStatus> {};
|
class Directory: public std::map<std::string, PathStatus> {};
|
||||||
std::map<cmStdString, Directory> Dirs;
|
std::map<std::string, Directory> Dirs;
|
||||||
|
|
||||||
std::string ComputeBranchFlag(std::string const& dir);
|
std::string ComputeBranchFlag(std::string const& dir);
|
||||||
void LoadRevisions(std::string const& file, const char* branchFlag,
|
void LoadRevisions(std::string const& file, const char* branchFlag,
|
||||||
|
@ -56,7 +56,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool LabelsMentioned;
|
bool LabelsMentioned;
|
||||||
std::set<cmStdString> Labels;
|
std::set<std::string> Labels;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ int cmCTestCoverageHandler::ProcessHandler()
|
|||||||
|
|
||||||
// setup the regex exclude stuff
|
// setup the regex exclude stuff
|
||||||
this->CustomCoverageExcludeRegex.clear();
|
this->CustomCoverageExcludeRegex.clear();
|
||||||
std::vector<cmStdString>::iterator rexIt;
|
std::vector<std::string>::iterator rexIt;
|
||||||
for ( rexIt = this->CustomCoverageExclude.begin();
|
for ( rexIt = this->CustomCoverageExclude.begin();
|
||||||
rexIt != this->CustomCoverageExclude.end();
|
rexIt != this->CustomCoverageExclude.end();
|
||||||
++ rexIt )
|
++ rexIt )
|
||||||
@ -713,7 +713,7 @@ void cmCTestCoverageHandler::PopulateCustomVectors(cmMakefile *mf)
|
|||||||
this->CustomCoverageExclude);
|
this->CustomCoverageExclude);
|
||||||
this->CTest->PopulateCustomVector(mf, "CTEST_EXTRA_COVERAGE_GLOB",
|
this->CTest->PopulateCustomVector(mf, "CTEST_EXTRA_COVERAGE_GLOB",
|
||||||
this->ExtraCoverageGlobs);
|
this->ExtraCoverageGlobs);
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = this->CustomCoverageExclude.begin();
|
for ( it = this->CustomCoverageExclude.begin();
|
||||||
it != this->CustomCoverageExclude.end();
|
it != this->CustomCoverageExclude.end();
|
||||||
++ it )
|
++ it )
|
||||||
@ -989,8 +989,8 @@ int cmCTestCoverageHandler::HandleGCovCoverage(
|
|||||||
<< "--------------------------------------------------------------"
|
<< "--------------------------------------------------------------"
|
||||||
<< std::endl);
|
<< std::endl);
|
||||||
|
|
||||||
std::vector<cmStdString> lines;
|
std::vector<std::string> lines;
|
||||||
std::vector<cmStdString>::iterator line;
|
std::vector<std::string>::iterator line;
|
||||||
|
|
||||||
cmSystemTools::Split(output.c_str(), lines);
|
cmSystemTools::Split(output.c_str(), lines);
|
||||||
|
|
||||||
@ -1504,7 +1504,7 @@ namespace
|
|||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
int cmCTestCoverageHandler::RunBullseyeCoverageBranch(
|
int cmCTestCoverageHandler::RunBullseyeCoverageBranch(
|
||||||
cmCTestCoverageHandlerContainer* cont,
|
cmCTestCoverageHandlerContainer* cont,
|
||||||
std::set<cmStdString>& coveredFileNames,
|
std::set<std::string>& coveredFileNames,
|
||||||
std::vector<std::string>& files,
|
std::vector<std::string>& files,
|
||||||
std::vector<std::string>& filesFullPath)
|
std::vector<std::string>& filesFullPath)
|
||||||
{
|
{
|
||||||
@ -1545,7 +1545,7 @@ int cmCTestCoverageHandler::RunBullseyeCoverageBranch(
|
|||||||
outputFile.c_str() << std::endl);
|
outputFile.c_str() << std::endl);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
std::map<cmStdString, cmStdString> fileMap;
|
std::map<std::string, std::string> fileMap;
|
||||||
std::vector<std::string>::iterator fp = filesFullPath.begin();
|
std::vector<std::string>::iterator fp = filesFullPath.begin();
|
||||||
for(std::vector<std::string>::iterator f = files.begin();
|
for(std::vector<std::string>::iterator f = files.begin();
|
||||||
f != files.end(); ++f, ++fp)
|
f != files.end(); ++f, ++fp)
|
||||||
@ -1558,7 +1558,7 @@ int cmCTestCoverageHandler::RunBullseyeCoverageBranch(
|
|||||||
std::string lineIn;
|
std::string lineIn;
|
||||||
bool valid = false; // are we in a valid output file
|
bool valid = false; // are we in a valid output file
|
||||||
int line = 0; // line of the current file
|
int line = 0; // line of the current file
|
||||||
cmStdString file;
|
std::string file;
|
||||||
while(cmSystemTools::GetLineFromStream(fin, lineIn))
|
while(cmSystemTools::GetLineFromStream(fin, lineIn))
|
||||||
{
|
{
|
||||||
bool startFile = false;
|
bool startFile = false;
|
||||||
@ -1593,7 +1593,7 @@ int cmCTestCoverageHandler::RunBullseyeCoverageBranch(
|
|||||||
}
|
}
|
||||||
count++; // move on one
|
count++; // move on one
|
||||||
}
|
}
|
||||||
std::map<cmStdString, cmStdString>::iterator
|
std::map<std::string, std::string>::iterator
|
||||||
i = fileMap.find(file);
|
i = fileMap.find(file);
|
||||||
// if the file should be covered write out the header for that file
|
// if the file should be covered write out the header for that file
|
||||||
if(i != fileMap.end())
|
if(i != fileMap.end())
|
||||||
@ -1758,7 +1758,7 @@ int cmCTestCoverageHandler::RunBullseyeSourceSummary(
|
|||||||
outputFile.c_str() << std::endl);
|
outputFile.c_str() << std::endl);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
std::set<cmStdString> coveredFileNames;
|
std::set<std::string> coveredFileNames;
|
||||||
while(cmSystemTools::GetLineFromStream(fin, stdline))
|
while(cmSystemTools::GetLineFromStream(fin, stdline))
|
||||||
{
|
{
|
||||||
// if we have a line of output from stdout
|
// if we have a line of output from stdout
|
||||||
@ -2105,10 +2105,10 @@ void cmCTestCoverageHandler::WriteXMLLabels(std::ostream& os,
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void
|
void
|
||||||
cmCTestCoverageHandler::SetLabelFilter(std::set<cmStdString> const& labels)
|
cmCTestCoverageHandler::SetLabelFilter(std::set<std::string> const& labels)
|
||||||
{
|
{
|
||||||
this->LabelFilter.clear();
|
this->LabelFilter.clear();
|
||||||
for(std::set<cmStdString>::const_iterator li = labels.begin();
|
for(std::set<std::string>::const_iterator li = labels.begin();
|
||||||
li != labels.end(); ++li)
|
li != labels.end(); ++li)
|
||||||
{
|
{
|
||||||
this->LabelFilter.insert(this->GetLabelId(*li));
|
this->LabelFilter.insert(this->GetLabelId(*li));
|
||||||
@ -2158,7 +2158,7 @@ std::set<std::string> cmCTestCoverageHandler::FindUncoveredFiles(
|
|||||||
{
|
{
|
||||||
std::set<std::string> extraMatches;
|
std::set<std::string> extraMatches;
|
||||||
|
|
||||||
for(std::vector<cmStdString>::iterator i = this->ExtraCoverageGlobs.begin();
|
for(std::vector<std::string>::iterator i = this->ExtraCoverageGlobs.begin();
|
||||||
i != this->ExtraCoverageGlobs.end(); ++i)
|
i != this->ExtraCoverageGlobs.end(); ++i)
|
||||||
{
|
{
|
||||||
cmsys::Glob gl;
|
cmsys::Glob gl;
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
void PopulateCustomVectors(cmMakefile *mf);
|
void PopulateCustomVectors(cmMakefile *mf);
|
||||||
|
|
||||||
/** Report coverage only for sources with these labels. */
|
/** Report coverage only for sources with these labels. */
|
||||||
void SetLabelFilter(std::set<cmStdString> const& labels);
|
void SetLabelFilter(std::set<std::string> const& labels);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool ShouldIDoCoverage(const char* file, const char* srcDir,
|
bool ShouldIDoCoverage(const char* file, const char* srcDir,
|
||||||
@ -81,7 +81,7 @@ private:
|
|||||||
int HandleBullseyeCoverage(cmCTestCoverageHandlerContainer* cont);
|
int HandleBullseyeCoverage(cmCTestCoverageHandlerContainer* cont);
|
||||||
int RunBullseyeSourceSummary(cmCTestCoverageHandlerContainer* cont);
|
int RunBullseyeSourceSummary(cmCTestCoverageHandlerContainer* cont);
|
||||||
int RunBullseyeCoverageBranch(cmCTestCoverageHandlerContainer* cont,
|
int RunBullseyeCoverageBranch(cmCTestCoverageHandlerContainer* cont,
|
||||||
std::set<cmStdString>& coveredFileNames,
|
std::set<std::string>& coveredFileNames,
|
||||||
std::vector<std::string>& files,
|
std::vector<std::string>& files,
|
||||||
std::vector<std::string>& filesFullPath);
|
std::vector<std::string>& filesFullPath);
|
||||||
|
|
||||||
@ -112,19 +112,19 @@ private:
|
|||||||
|
|
||||||
std::set<std::string> FindUncoveredFiles(
|
std::set<std::string> FindUncoveredFiles(
|
||||||
cmCTestCoverageHandlerContainer* cont);
|
cmCTestCoverageHandlerContainer* cont);
|
||||||
std::vector<cmStdString> CustomCoverageExclude;
|
std::vector<std::string> CustomCoverageExclude;
|
||||||
std::vector<cmsys::RegularExpression> CustomCoverageExcludeRegex;
|
std::vector<cmsys::RegularExpression> CustomCoverageExcludeRegex;
|
||||||
std::vector<cmStdString> ExtraCoverageGlobs;
|
std::vector<std::string> ExtraCoverageGlobs;
|
||||||
|
|
||||||
|
|
||||||
// Map from source file to label ids.
|
// Map from source file to label ids.
|
||||||
class LabelSet: public std::set<int> {};
|
class LabelSet: public std::set<int> {};
|
||||||
typedef std::map<cmStdString, LabelSet> LabelMapType;
|
typedef std::map<std::string, LabelSet> LabelMapType;
|
||||||
LabelMapType SourceLabels;
|
LabelMapType SourceLabels;
|
||||||
LabelMapType TargetDirs;
|
LabelMapType TargetDirs;
|
||||||
|
|
||||||
// Map from label name to label id.
|
// Map from label name to label id.
|
||||||
typedef std::map<cmStdString, int> LabelIdMapType;
|
typedef std::map<std::string, int> LabelIdMapType;
|
||||||
LabelIdMapType LabelIdMap;
|
LabelIdMapType LabelIdMap;
|
||||||
std::vector<std::string> Labels;
|
std::vector<std::string> Labels;
|
||||||
int GetLabelId(std::string const& label);
|
int GetLabelId(std::string const& label);
|
||||||
|
@ -179,8 +179,8 @@ bool cmCTestGIT::UpdateByFetchAndReset()
|
|||||||
{
|
{
|
||||||
opts = this->CTest->GetCTestConfiguration("GITUpdateOptions");
|
opts = this->CTest->GetCTestConfiguration("GITUpdateOptions");
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(opts.c_str());
|
std::vector<std::string> args = cmSystemTools::ParseArguments(opts.c_str());
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
git_fetch.push_back(ai->c_str());
|
git_fetch.push_back(ai->c_str());
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
cmCTestGenericHandler();
|
cmCTestGenericHandler();
|
||||||
virtual ~cmCTestGenericHandler();
|
virtual ~cmCTestGenericHandler();
|
||||||
|
|
||||||
typedef std::map<cmStdString,cmStdString> t_StringToString;
|
typedef std::map<std::string,std::string> t_StringToString;
|
||||||
|
|
||||||
|
|
||||||
void SetPersistentOption(const std::string& op, const char* value);
|
void SetPersistentOption(const std::string& op, const char* value);
|
||||||
|
@ -132,7 +132,7 @@ bool cmCTestGlobalVC::WriteXMLUpdates(std::ostream& xml)
|
|||||||
|
|
||||||
this->WriteXMLGlobal(xml);
|
this->WriteXMLGlobal(xml);
|
||||||
|
|
||||||
for(std::map<cmStdString, Directory>::const_iterator
|
for(std::map<std::string, Directory>::const_iterator
|
||||||
di = this->Dirs.begin(); di != this->Dirs.end(); ++di)
|
di = this->Dirs.begin(); di != this->Dirs.end(); ++di)
|
||||||
{
|
{
|
||||||
this->WriteXMLDirectory(xml, di->first, di->second);
|
this->WriteXMLDirectory(xml, di->first, di->second);
|
||||||
|
@ -39,8 +39,8 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Update status for files in each directory.
|
// Update status for files in each directory.
|
||||||
class Directory: public std::map<cmStdString, File> {};
|
class Directory: public std::map<std::string, File> {};
|
||||||
std::map<cmStdString, Directory> Dirs;
|
std::map<std::string, Directory> Dirs;
|
||||||
|
|
||||||
// Old and new repository revisions.
|
// Old and new repository revisions.
|
||||||
std::string OldRevision;
|
std::string OldRevision;
|
||||||
|
@ -149,8 +149,8 @@ bool cmCTestHG::UpdateImpl()
|
|||||||
{
|
{
|
||||||
opts = this->CTest->GetCTestConfiguration("HGUpdateOptions");
|
opts = this->CTest->GetCTestConfiguration("HGUpdateOptions");
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(opts.c_str());
|
std::vector<std::string> args = cmSystemTools::ParseArguments(opts.c_str());
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
hg_update.push_back(ai->c_str());
|
hg_update.push_back(ai->c_str());
|
||||||
|
@ -567,7 +567,7 @@ void cmCTestLaunch::WriteXMLLabels(std::ostream& fxml)
|
|||||||
fxml << "\n";
|
fxml << "\n";
|
||||||
fxml << "\t\t<!-- Interested parties -->\n";
|
fxml << "\t\t<!-- Interested parties -->\n";
|
||||||
fxml << "\t\t<Labels>\n";
|
fxml << "\t\t<Labels>\n";
|
||||||
for(std::set<cmStdString>::const_iterator li = this->Labels.begin();
|
for(std::set<std::string>::const_iterator li = this->Labels.begin();
|
||||||
li != this->Labels.end(); ++li)
|
li != this->Labels.end(); ++li)
|
||||||
{
|
{
|
||||||
fxml << "\t\t\t<Label>" << cmXMLSafe(*li) << "</Label>\n";
|
fxml << "\t\t\t<Label>" << cmXMLSafe(*li) << "</Label>\n";
|
||||||
|
@ -73,7 +73,7 @@ private:
|
|||||||
bool HaveErr;
|
bool HaveErr;
|
||||||
|
|
||||||
// Labels associated with the build rule.
|
// Labels associated with the build rule.
|
||||||
std::set<cmStdString> Labels;
|
std::set<std::string> Labels;
|
||||||
void LoadLabels();
|
void LoadLabels();
|
||||||
bool SourceMatches(std::string const& lhs,
|
bool SourceMatches(std::string const& lhs,
|
||||||
std::string const& rhs);
|
std::string const& rhs);
|
||||||
|
@ -246,8 +246,8 @@ int cmCTestMemCheckHandler::PostProcessHandler()
|
|||||||
void cmCTestMemCheckHandler::GenerateTestCommand(
|
void cmCTestMemCheckHandler::GenerateTestCommand(
|
||||||
std::vector<std::string>& args, int test)
|
std::vector<std::string>& args, int test)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::size_type pp;
|
std::vector<std::string>::size_type pp;
|
||||||
cmStdString index;
|
std::string index;
|
||||||
cmOStringStream stream;
|
cmOStringStream stream;
|
||||||
std::string memcheckcommand
|
std::string memcheckcommand
|
||||||
= cmSystemTools::ConvertToOutputPath(this->MemoryTester.c_str());
|
= cmSystemTools::ConvertToOutputPath(this->MemoryTester.c_str());
|
||||||
@ -255,9 +255,9 @@ void cmCTestMemCheckHandler::GenerateTestCommand(
|
|||||||
index = stream.str();
|
index = stream.str();
|
||||||
for ( pp = 0; pp < this->MemoryTesterDynamicOptions.size(); pp ++ )
|
for ( pp = 0; pp < this->MemoryTesterDynamicOptions.size(); pp ++ )
|
||||||
{
|
{
|
||||||
cmStdString arg = this->MemoryTesterDynamicOptions[pp];
|
std::string arg = this->MemoryTesterDynamicOptions[pp];
|
||||||
cmStdString::size_type pos = arg.find("??");
|
std::string::size_type pos = arg.find("??");
|
||||||
if (pos != cmStdString::npos)
|
if (pos != std::string::npos)
|
||||||
{
|
{
|
||||||
arg.replace(pos, 2, index);
|
arg.replace(pos, 2, index);
|
||||||
}
|
}
|
||||||
@ -580,7 +580,7 @@ bool cmCTestMemCheckHandler::InitializeMemoryChecking()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<cmStdString>::size_type cc;
|
std::vector<std::string>::size_type cc;
|
||||||
for ( cc = 0; cmCTestMemCheckResultStrings[cc]; cc ++ )
|
for ( cc = 0; cmCTestMemCheckResultStrings[cc]; cc ++ )
|
||||||
{
|
{
|
||||||
this->MemoryTesterGlobalResults[cc] = 0;
|
this->MemoryTesterGlobalResults[cc] = 0;
|
||||||
@ -627,7 +627,7 @@ bool cmCTestMemCheckHandler::ProcessMemCheckPurifyOutput(
|
|||||||
const std::string& str, std::string& log,
|
const std::string& str, std::string& log,
|
||||||
int* results)
|
int* results)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString> lines;
|
std::vector<std::string> lines;
|
||||||
cmSystemTools::Split(str.c_str(), lines);
|
cmSystemTools::Split(str.c_str(), lines);
|
||||||
cmOStringStream ostr;
|
cmOStringStream ostr;
|
||||||
log = "";
|
log = "";
|
||||||
@ -636,7 +636,7 @@ bool cmCTestMemCheckHandler::ProcessMemCheckPurifyOutput(
|
|||||||
|
|
||||||
int defects = 0;
|
int defects = 0;
|
||||||
|
|
||||||
for( std::vector<cmStdString>::iterator i = lines.begin();
|
for( std::vector<std::string>::iterator i = lines.begin();
|
||||||
i != lines.end(); ++i)
|
i != lines.end(); ++i)
|
||||||
{
|
{
|
||||||
int failure = cmCTestMemCheckHandler::NO_MEMORY_FAULT;
|
int failure = cmCTestMemCheckHandler::NO_MEMORY_FAULT;
|
||||||
@ -681,7 +681,7 @@ bool cmCTestMemCheckHandler::ProcessMemCheckValgrindOutput(
|
|||||||
const std::string& str, std::string& log,
|
const std::string& str, std::string& log,
|
||||||
int* results)
|
int* results)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString> lines;
|
std::vector<std::string> lines;
|
||||||
cmSystemTools::Split(str.c_str(), lines);
|
cmSystemTools::Split(str.c_str(), lines);
|
||||||
bool unlimitedOutput = false;
|
bool unlimitedOutput = false;
|
||||||
if(str.find("CTEST_FULL_OUTPUT") != str.npos ||
|
if(str.find("CTEST_FULL_OUTPUT") != str.npos ||
|
||||||
@ -864,10 +864,10 @@ bool cmCTestMemCheckHandler::ProcessMemCheckBoundsCheckerOutput(
|
|||||||
{
|
{
|
||||||
log = "";
|
log = "";
|
||||||
double sttime = cmSystemTools::GetTime();
|
double sttime = cmSystemTools::GetTime();
|
||||||
std::vector<cmStdString> lines;
|
std::vector<std::string> lines;
|
||||||
cmSystemTools::Split(str.c_str(), lines);
|
cmSystemTools::Split(str.c_str(), lines);
|
||||||
cmCTestLog(this->CTest, DEBUG, "Start test: " << lines.size() << std::endl);
|
cmCTestLog(this->CTest, DEBUG, "Start test: " << lines.size() << std::endl);
|
||||||
std::vector<cmStdString>::size_type cc;
|
std::vector<std::string>::size_type cc;
|
||||||
for ( cc = 0; cc < lines.size(); cc ++ )
|
for ( cc = 0; cc < lines.size(); cc ++ )
|
||||||
{
|
{
|
||||||
if(lines[cc] == BOUNDS_CHECKER_MARKER)
|
if(lines[cc] == BOUNDS_CHECKER_MARKER)
|
||||||
@ -923,7 +923,7 @@ cmCTestMemCheckHandler::PostProcessBoundsCheckerTest(cmCTestTestResult& res,
|
|||||||
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
||||||
"PostProcessBoundsCheckerTest for : "
|
"PostProcessBoundsCheckerTest for : "
|
||||||
<< res.Name.c_str() << std::endl);
|
<< res.Name.c_str() << std::endl);
|
||||||
cmStdString ofile = testOutputFileName(test);
|
std::string ofile = testOutputFileName(test);
|
||||||
if ( ofile.empty() )
|
if ( ofile.empty() )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -979,7 +979,7 @@ void
|
|||||||
cmCTestMemCheckHandler::appendMemTesterOutput(cmCTestTestResult& res,
|
cmCTestMemCheckHandler::appendMemTesterOutput(cmCTestTestResult& res,
|
||||||
int test)
|
int test)
|
||||||
{
|
{
|
||||||
cmStdString ofile = testOutputFileName(test);
|
std::string ofile = testOutputFileName(test);
|
||||||
|
|
||||||
if ( ofile.empty() )
|
if ( ofile.empty() )
|
||||||
{
|
{
|
||||||
@ -1000,15 +1000,15 @@ cmCTestMemCheckHandler::appendMemTesterOutput(cmCTestTestResult& res,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cmStdString
|
std::string
|
||||||
cmCTestMemCheckHandler::testOutputFileName(int test)
|
cmCTestMemCheckHandler::testOutputFileName(int test)
|
||||||
{
|
{
|
||||||
cmStdString index;
|
std::string index;
|
||||||
cmOStringStream stream;
|
cmOStringStream stream;
|
||||||
stream << test;
|
stream << test;
|
||||||
index = stream.str();
|
index = stream.str();
|
||||||
cmStdString ofile = this->MemoryTesterOutputFile;
|
std::string ofile = this->MemoryTesterOutputFile;
|
||||||
cmStdString::size_type pos = ofile.find("??");
|
std::string::size_type pos = ofile.find("??");
|
||||||
ofile.replace(pos, 2, index);
|
ofile.replace(pos, 2, index);
|
||||||
|
|
||||||
if ( !cmSystemTools::FileExists(ofile.c_str()) )
|
if ( !cmSystemTools::FileExists(ofile.c_str()) )
|
||||||
|
@ -89,8 +89,8 @@ private:
|
|||||||
std::string BoundsCheckerDPBDFile;
|
std::string BoundsCheckerDPBDFile;
|
||||||
std::string BoundsCheckerXMLFile;
|
std::string BoundsCheckerXMLFile;
|
||||||
std::string MemoryTester;
|
std::string MemoryTester;
|
||||||
std::vector<cmStdString> MemoryTesterDynamicOptions;
|
std::vector<std::string> MemoryTesterDynamicOptions;
|
||||||
std::vector<cmStdString> MemoryTesterOptions;
|
std::vector<std::string> MemoryTesterOptions;
|
||||||
int MemoryTesterStyle;
|
int MemoryTesterStyle;
|
||||||
std::string MemoryTesterOutputFile;
|
std::string MemoryTesterOutputFile;
|
||||||
int MemoryTesterGlobalResults[NO_MEMORY_FAULT];
|
int MemoryTesterGlobalResults[NO_MEMORY_FAULT];
|
||||||
@ -103,8 +103,8 @@ private:
|
|||||||
*/
|
*/
|
||||||
void GenerateDartOutput(std::ostream& os);
|
void GenerateDartOutput(std::ostream& os);
|
||||||
|
|
||||||
std::vector<cmStdString> CustomPreMemCheck;
|
std::vector<std::string> CustomPreMemCheck;
|
||||||
std::vector<cmStdString> CustomPostMemCheck;
|
std::vector<std::string> CustomPostMemCheck;
|
||||||
|
|
||||||
//! Parse Valgrind/Purify/Bounds Checker result out of the output
|
//! Parse Valgrind/Purify/Bounds Checker result out of the output
|
||||||
//string. After running, log holds the output and results hold the
|
//string. After running, log holds the output and results hold the
|
||||||
@ -127,7 +127,7 @@ private:
|
|||||||
int test);
|
int test);
|
||||||
|
|
||||||
///! generate the output filename for the given test index
|
///! generate the output filename for the given test index
|
||||||
cmStdString testOutputFileName(int test);
|
std::string testOutputFileName(int test);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -369,7 +369,7 @@ void cmCTestMultiProcessHandler::UpdateCostData()
|
|||||||
|
|
||||||
// Write list of failed tests
|
// Write list of failed tests
|
||||||
fout << "---\n";
|
fout << "---\n";
|
||||||
for(std::vector<cmStdString>::iterator i = this->Failed->begin();
|
for(std::vector<std::string>::iterator i = this->Failed->begin();
|
||||||
i != this->Failed->end(); ++i)
|
i != this->Failed->end(); ++i)
|
||||||
{
|
{
|
||||||
fout << i->c_str() << "\n";
|
fout << i->c_str() << "\n";
|
||||||
|
@ -41,8 +41,8 @@ public:
|
|||||||
void PrintTestList();
|
void PrintTestList();
|
||||||
void PrintLabels();
|
void PrintLabels();
|
||||||
|
|
||||||
void SetPassFailVectors(std::vector<cmStdString>* passed,
|
void SetPassFailVectors(std::vector<std::string>* passed,
|
||||||
std::vector<cmStdString>* failed)
|
std::vector<std::string>* failed)
|
||||||
{
|
{
|
||||||
this->Passed = passed;
|
this->Passed = passed;
|
||||||
this->Failed = failed;
|
this->Failed = failed;
|
||||||
@ -107,9 +107,9 @@ protected:
|
|||||||
PropertiesMap Properties;
|
PropertiesMap Properties;
|
||||||
std::map<int, bool> TestRunningMap;
|
std::map<int, bool> TestRunningMap;
|
||||||
std::map<int, bool> TestFinishMap;
|
std::map<int, bool> TestFinishMap;
|
||||||
std::map<int, cmStdString> TestOutput;
|
std::map<int, std::string> TestOutput;
|
||||||
std::vector<cmStdString>* Passed;
|
std::vector<std::string>* Passed;
|
||||||
std::vector<cmStdString>* Failed;
|
std::vector<std::string>* Failed;
|
||||||
std::vector<std::string> LastTestsFailed;
|
std::vector<std::string> LastTestsFailed;
|
||||||
std::set<std::string> LockedResources;
|
std::set<std::string> LockedResources;
|
||||||
std::vector<cmCTestTestHandler::cmCTestTestResult>* TestResults;
|
std::vector<cmCTestTestHandler::cmCTestTestResult>* TestResults;
|
||||||
|
@ -346,10 +346,10 @@ void cmCTestP4::SetP4Options(std::vector<char const*> &CommandOptions)
|
|||||||
//The CTEST_P4_OPTIONS variable adds additional Perforce command line
|
//The CTEST_P4_OPTIONS variable adds additional Perforce command line
|
||||||
//options before the main command
|
//options before the main command
|
||||||
std::string opts = this->CTest->GetCTestConfiguration("P4Options");
|
std::string opts = this->CTest->GetCTestConfiguration("P4Options");
|
||||||
std::vector<cmStdString> args =
|
std::vector<std::string> args =
|
||||||
cmSystemTools::ParseArguments(opts.c_str());
|
cmSystemTools::ParseArguments(opts.c_str());
|
||||||
|
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
P4Options.push_back(ai->c_str());
|
P4Options.push_back(ai->c_str());
|
||||||
@ -538,8 +538,8 @@ bool cmCTestP4::UpdateImpl()
|
|||||||
{
|
{
|
||||||
opts = this->CTest->GetCTestConfiguration("P4UpdateOptions");
|
opts = this->CTest->GetCTestConfiguration("P4UpdateOptions");
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(opts.c_str());
|
std::vector<std::string> args = cmSystemTools::ParseArguments(opts.c_str());
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
p4_sync.push_back(ai->c_str());
|
p4_sync.push_back(ai->c_str());
|
||||||
|
@ -277,7 +277,7 @@ bool cmCTestSVN::UpdateImpl()
|
|||||||
{
|
{
|
||||||
opts = this->CTest->GetCTestConfiguration("SVNUpdateOptions");
|
opts = this->CTest->GetCTestConfiguration("SVNUpdateOptions");
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(opts.c_str());
|
std::vector<std::string> args = cmSystemTools::ParseArguments(opts.c_str());
|
||||||
|
|
||||||
// Specify the start time for nightly testing.
|
// Specify the start time for nightly testing.
|
||||||
if(this->CTest->GetTestModel() == cmCTest::NIGHTLY)
|
if(this->CTest->GetTestModel() == cmCTest::NIGHTLY)
|
||||||
@ -287,7 +287,7 @@ bool cmCTestSVN::UpdateImpl()
|
|||||||
|
|
||||||
std::vector<char const*> svn_update;
|
std::vector<char const*> svn_update;
|
||||||
svn_update.push_back("update");
|
svn_update.push_back("update");
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
svn_update.push_back(ai->c_str());
|
svn_update.push_back(ai->c_str());
|
||||||
@ -314,9 +314,9 @@ bool cmCTestSVN::RunSVNCommand(std::vector<char const*> const& parameters,
|
|||||||
std::string userOptions =
|
std::string userOptions =
|
||||||
this->CTest->GetCTestConfiguration("SVNOptions");
|
this->CTest->GetCTestConfiguration("SVNOptions");
|
||||||
|
|
||||||
std::vector<cmStdString> parsedUserOptions =
|
std::vector<std::string> parsedUserOptions =
|
||||||
cmSystemTools::ParseArguments(userOptions.c_str());
|
cmSystemTools::ParseArguments(userOptions.c_str());
|
||||||
for(std::vector<cmStdString>::iterator i = parsedUserOptions.begin();
|
for(std::vector<std::string>::iterator i = parsedUserOptions.begin();
|
||||||
i != parsedUserOptions.end(); ++i)
|
i != parsedUserOptions.end(); ++i)
|
||||||
{
|
{
|
||||||
args.push_back(i->c_str());
|
args.push_back(i->c_str());
|
||||||
|
@ -231,7 +231,7 @@ int cmCTestScriptHandler::ExecuteScript(const std::string& total_script_arg)
|
|||||||
cmSystemTools::GetCTestCommand() << "\n");
|
cmSystemTools::GetCTestCommand() << "\n");
|
||||||
|
|
||||||
// now pass through all the other arguments
|
// now pass through all the other arguments
|
||||||
std::vector<cmStdString> &initArgs =
|
std::vector<std::string> &initArgs =
|
||||||
this->CTest->GetInitialCommandLineArguments();
|
this->CTest->GetInitialCommandLineArguments();
|
||||||
//*** need to make sure this does not have the current script ***
|
//*** need to make sure this does not have the current script ***
|
||||||
for(size_t i=1; i < initArgs.size(); ++i)
|
for(size_t i=1; i < initArgs.size(); ++i)
|
||||||
@ -766,7 +766,7 @@ int cmCTestScriptHandler::PerformExtraUpdates()
|
|||||||
|
|
||||||
// do an initial cvs update as required
|
// do an initial cvs update as required
|
||||||
command = this->UpdateCmd;
|
command = this->UpdateCmd;
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for (it = this->ExtraUpdates.begin();
|
for (it = this->ExtraUpdates.begin();
|
||||||
it != this->ExtraUpdates.end();
|
it != this->ExtraUpdates.end();
|
||||||
++ it )
|
++ it )
|
||||||
|
@ -138,26 +138,26 @@ private:
|
|||||||
// Try to remove the binary directory once
|
// Try to remove the binary directory once
|
||||||
static bool TryToRemoveBinaryDirectoryOnce(const std::string& directoryPath);
|
static bool TryToRemoveBinaryDirectoryOnce(const std::string& directoryPath);
|
||||||
|
|
||||||
std::vector<cmStdString> ConfigurationScripts;
|
std::vector<std::string> ConfigurationScripts;
|
||||||
std::vector<bool> ScriptProcessScope;
|
std::vector<bool> ScriptProcessScope;
|
||||||
|
|
||||||
bool Backup;
|
bool Backup;
|
||||||
bool EmptyBinDir;
|
bool EmptyBinDir;
|
||||||
bool EmptyBinDirOnce;
|
bool EmptyBinDirOnce;
|
||||||
|
|
||||||
cmStdString SourceDir;
|
std::string SourceDir;
|
||||||
cmStdString BinaryDir;
|
std::string BinaryDir;
|
||||||
cmStdString BackupSourceDir;
|
std::string BackupSourceDir;
|
||||||
cmStdString BackupBinaryDir;
|
std::string BackupBinaryDir;
|
||||||
cmStdString CTestRoot;
|
std::string CTestRoot;
|
||||||
cmStdString CVSCheckOut;
|
std::string CVSCheckOut;
|
||||||
cmStdString CTestCmd;
|
std::string CTestCmd;
|
||||||
cmStdString UpdateCmd;
|
std::string UpdateCmd;
|
||||||
cmStdString CTestEnv;
|
std::string CTestEnv;
|
||||||
cmStdString InitialCache;
|
std::string InitialCache;
|
||||||
cmStdString CMakeCmd;
|
std::string CMakeCmd;
|
||||||
cmStdString CMOutFile;
|
std::string CMOutFile;
|
||||||
std::vector<cmStdString> ExtraUpdates;
|
std::vector<std::string> ExtraUpdates;
|
||||||
|
|
||||||
double MinimumInterval;
|
double MinimumInterval;
|
||||||
double ContinuousDuration;
|
double ContinuousDuration;
|
||||||
|
@ -72,7 +72,7 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
|
|||||||
if (notesFilesVariable)
|
if (notesFilesVariable)
|
||||||
{
|
{
|
||||||
std::vector<std::string> notesFiles;
|
std::vector<std::string> notesFiles;
|
||||||
std::vector<cmStdString> newNotesFiles;
|
cmCTest::VectorOfStrings newNotesFiles;
|
||||||
cmSystemTools::ExpandListArgument(notesFilesVariable,notesFiles);
|
cmSystemTools::ExpandListArgument(notesFilesVariable,notesFiles);
|
||||||
std::vector<std::string>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = notesFiles.begin();
|
for ( it = notesFiles.begin();
|
||||||
@ -89,7 +89,7 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
|
|||||||
if (extraFilesVariable)
|
if (extraFilesVariable)
|
||||||
{
|
{
|
||||||
std::vector<std::string> extraFiles;
|
std::vector<std::string> extraFiles;
|
||||||
std::vector<cmStdString> newExtraFiles;
|
cmCTest::VectorOfStrings newExtraFiles;
|
||||||
cmSystemTools::ExpandListArgument(extraFilesVariable,extraFiles);
|
cmSystemTools::ExpandListArgument(extraFilesVariable,extraFiles);
|
||||||
std::vector<std::string>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = extraFiles.begin();
|
for ( it = extraFiles.begin();
|
||||||
@ -222,7 +222,7 @@ bool cmCTestSubmitCommand::CheckArgumentValue(std::string const& arg)
|
|||||||
|
|
||||||
if(this->ArgumentDoing == ArgumentDoingFiles)
|
if(this->ArgumentDoing == ArgumentDoingFiles)
|
||||||
{
|
{
|
||||||
cmStdString filename(arg);
|
std::string filename(arg);
|
||||||
if(cmSystemTools::FileExists(filename.c_str()))
|
if(cmSystemTools::FileExists(filename.c_str()))
|
||||||
{
|
{
|
||||||
this->Files.insert(filename);
|
this->Files.insert(filename);
|
||||||
|
@ -170,10 +170,10 @@ void cmCTestSubmitHandler::Initialize()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmCTestSubmitHandler::SubmitUsingFTP(const cmStdString& localprefix,
|
bool cmCTestSubmitHandler::SubmitUsingFTP(const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url)
|
const std::string& url)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
@ -217,12 +217,12 @@ bool cmCTestSubmitHandler::SubmitUsingFTP(const cmStdString& localprefix,
|
|||||||
|
|
||||||
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
|
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
|
||||||
|
|
||||||
cmStdString local_file = *file;
|
std::string local_file = *file;
|
||||||
if ( !cmSystemTools::FileExists(local_file.c_str()) )
|
if ( !cmSystemTools::FileExists(local_file.c_str()) )
|
||||||
{
|
{
|
||||||
local_file = localprefix + "/" + *file;
|
local_file = localprefix + "/" + *file;
|
||||||
}
|
}
|
||||||
cmStdString upload_as
|
std::string upload_as
|
||||||
= url + "/" + remoteprefix + cmSystemTools::GetFilenameName(*file);
|
= url + "/" + remoteprefix + cmSystemTools::GetFilenameName(*file);
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
@ -324,10 +324,10 @@ bool cmCTestSubmitHandler::SubmitUsingFTP(const cmStdString& localprefix,
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// Uploading files is simpler
|
// Uploading files is simpler
|
||||||
bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
bool cmCTestSubmitHandler::SubmitUsingHTTP(const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url)
|
const std::string& url)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
@ -336,8 +336,8 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
|||||||
|
|
||||||
/* In windows, this will init the winsock stuff */
|
/* In windows, this will init the winsock stuff */
|
||||||
::curl_global_init(CURL_GLOBAL_ALL);
|
::curl_global_init(CURL_GLOBAL_ALL);
|
||||||
cmStdString dropMethod(this->CTest->GetCTestConfiguration("DropMethod"));
|
std::string dropMethod(this->CTest->GetCTestConfiguration("DropMethod"));
|
||||||
cmStdString curlopt(this->CTest->GetCTestConfiguration("CurlOptions"));
|
std::string curlopt(this->CTest->GetCTestConfiguration("CurlOptions"));
|
||||||
std::vector<std::string> args;
|
std::vector<std::string> args;
|
||||||
cmSystemTools::ExpandListArgument(curlopt.c_str(), args);
|
cmSystemTools::ExpandListArgument(curlopt.c_str(), args);
|
||||||
bool verifyPeerOff = false;
|
bool verifyPeerOff = false;
|
||||||
@ -354,7 +354,7 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
|||||||
verifyHostOff = true;
|
verifyHostOff = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmStdString::size_type kk;
|
std::string::size_type kk;
|
||||||
cmCTest::SetOfStrings::const_iterator file;
|
cmCTest::SetOfStrings::const_iterator file;
|
||||||
for ( file = files.begin(); file != files.end(); ++file )
|
for ( file = files.begin(); file != files.end(); ++file )
|
||||||
{
|
{
|
||||||
@ -414,18 +414,18 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
|||||||
::curl_easy_setopt(curl, CURLOPT_PUT, 1);
|
::curl_easy_setopt(curl, CURLOPT_PUT, 1);
|
||||||
::curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
::curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
||||||
|
|
||||||
cmStdString local_file = *file;
|
std::string local_file = *file;
|
||||||
if ( !cmSystemTools::FileExists(local_file.c_str()) )
|
if ( !cmSystemTools::FileExists(local_file.c_str()) )
|
||||||
{
|
{
|
||||||
local_file = localprefix + "/" + *file;
|
local_file = localprefix + "/" + *file;
|
||||||
}
|
}
|
||||||
cmStdString remote_file
|
std::string remote_file
|
||||||
= remoteprefix + cmSystemTools::GetFilenameName(*file);
|
= remoteprefix + cmSystemTools::GetFilenameName(*file);
|
||||||
|
|
||||||
*this->LogFile << "\tUpload file: " << local_file.c_str() << " to "
|
*this->LogFile << "\tUpload file: " << local_file.c_str() << " to "
|
||||||
<< remote_file.c_str() << std::endl;
|
<< remote_file.c_str() << std::endl;
|
||||||
|
|
||||||
cmStdString ofile = "";
|
std::string ofile = "";
|
||||||
for ( kk = 0; kk < remote_file.size(); kk ++ )
|
for ( kk = 0; kk < remote_file.size(); kk ++ )
|
||||||
{
|
{
|
||||||
char c = remote_file[kk];
|
char c = remote_file[kk];
|
||||||
@ -448,8 +448,8 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
|||||||
ofile.append(hexCh);
|
ofile.append(hexCh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmStdString upload_as
|
std::string upload_as
|
||||||
= url + ((url.find("?",0) == cmStdString::npos) ? "?" : "&")
|
= url + ((url.find("?",0) == std::string::npos) ? "?" : "&")
|
||||||
+ "FileName=" + ofile;
|
+ "FileName=" + ofile;
|
||||||
|
|
||||||
upload_as += "&MD5=";
|
upload_as += "&MD5=";
|
||||||
@ -666,9 +666,9 @@ void cmCTestSubmitHandler
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmCTestSubmitHandler::TriggerUsingHTTP(
|
bool cmCTestSubmitHandler::TriggerUsingHTTP(
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url)
|
const std::string& url)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
char error_buffer[1024];
|
char error_buffer[1024];
|
||||||
@ -721,10 +721,10 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(
|
|||||||
::curl_easy_setopt(curl, CURLOPT_FILE, (void *)&chunk);
|
::curl_easy_setopt(curl, CURLOPT_FILE, (void *)&chunk);
|
||||||
::curl_easy_setopt(curl, CURLOPT_DEBUGDATA, (void *)&chunkDebug);
|
::curl_easy_setopt(curl, CURLOPT_DEBUGDATA, (void *)&chunkDebug);
|
||||||
|
|
||||||
cmStdString rfile
|
std::string rfile
|
||||||
= remoteprefix + cmSystemTools::GetFilenameName(*file);
|
= remoteprefix + cmSystemTools::GetFilenameName(*file);
|
||||||
cmStdString ofile = "";
|
std::string ofile = "";
|
||||||
cmStdString::iterator kk;
|
std::string::iterator kk;
|
||||||
for ( kk = rfile.begin(); kk < rfile.end(); ++ kk)
|
for ( kk = rfile.begin(); kk < rfile.end(); ++ kk)
|
||||||
{
|
{
|
||||||
char c = *kk;
|
char c = *kk;
|
||||||
@ -747,8 +747,8 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(
|
|||||||
ofile.append(hexCh);
|
ofile.append(hexCh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmStdString turl
|
std::string turl
|
||||||
= url + ((url.find("?",0) == cmStdString::npos) ? "?" : "&")
|
= url + ((url.find("?",0) == std::string::npos) ? "?" : "&")
|
||||||
+ "xmlfile=" + ofile;
|
+ "xmlfile=" + ofile;
|
||||||
*this->LogFile << "Trigger url: " << turl.c_str() << std::endl;
|
*this->LogFile << "Trigger url: " << turl.c_str() << std::endl;
|
||||||
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, " Trigger url: "
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, " Trigger url: "
|
||||||
@ -805,11 +805,11 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmCTestSubmitHandler::SubmitUsingSCP(
|
bool cmCTestSubmitHandler::SubmitUsingSCP(
|
||||||
const cmStdString& scp_command,
|
const std::string& scp_command,
|
||||||
const cmStdString& localprefix,
|
const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url)
|
const std::string& url)
|
||||||
{
|
{
|
||||||
if ( !scp_command.size() || !localprefix.size() ||
|
if ( !scp_command.size() || !localprefix.size() ||
|
||||||
!files.size() || !remoteprefix.size() || !url.size() )
|
!files.size() || !remoteprefix.size() || !url.size() )
|
||||||
@ -906,10 +906,10 @@ bool cmCTestSubmitHandler::SubmitUsingSCP(
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmCTestSubmitHandler::SubmitUsingCP(
|
bool cmCTestSubmitHandler::SubmitUsingCP(
|
||||||
const cmStdString& localprefix,
|
const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& destination)
|
const std::string& destination)
|
||||||
{
|
{
|
||||||
if ( !localprefix.size() ||
|
if ( !localprefix.size() ||
|
||||||
!files.size() || !remoteprefix.size() || !destination.size() )
|
!files.size() || !remoteprefix.size() || !destination.size() )
|
||||||
@ -947,17 +947,17 @@ bool cmCTestSubmitHandler::SubmitUsingCP(
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
#if defined(CTEST_USE_XMLRPC)
|
#if defined(CTEST_USE_XMLRPC)
|
||||||
bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix,
|
bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url)
|
const std::string& url)
|
||||||
{
|
{
|
||||||
xmlrpc_env env;
|
xmlrpc_env env;
|
||||||
char ctestString[] = "CTest";
|
char ctestString[] = "CTest";
|
||||||
std::string ctestVersionString = cmVersion::GetCMakeVersion();
|
std::string ctestVersionString = cmVersion::GetCMakeVersion();
|
||||||
char* ctestVersion = const_cast<char*>(ctestVersionString.c_str());
|
char* ctestVersion = const_cast<char*>(ctestVersionString.c_str());
|
||||||
|
|
||||||
cmStdString realURL = url + "/" + remoteprefix + "/Command/";
|
std::string realURL = url + "/" + remoteprefix + "/Command/";
|
||||||
|
|
||||||
/* Start up our XML-RPC client library. */
|
/* Start up our XML-RPC client library. */
|
||||||
xmlrpc_client_init(XMLRPC_CLIENT_NO_FLAGS, ctestString, ctestVersion);
|
xmlrpc_client_init(XMLRPC_CLIENT_NO_FLAGS, ctestString, ctestVersion);
|
||||||
@ -973,7 +973,7 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix,
|
|||||||
{
|
{
|
||||||
xmlrpc_value *result;
|
xmlrpc_value *result;
|
||||||
|
|
||||||
cmStdString local_file = *file;
|
std::string local_file = *file;
|
||||||
if ( !cmSystemTools::FileExists(local_file.c_str()) )
|
if ( !cmSystemTools::FileExists(local_file.c_str()) )
|
||||||
{
|
{
|
||||||
local_file = localprefix + "/" + *file;
|
local_file = localprefix + "/" + *file;
|
||||||
@ -1045,10 +1045,10 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
bool cmCTestSubmitHandler::SubmitUsingXMLRPC(cmStdString const&,
|
bool cmCTestSubmitHandler::SubmitUsingXMLRPC(std::string const&,
|
||||||
std::set<cmStdString> const&,
|
std::set<std::string> const&,
|
||||||
cmStdString const&,
|
std::string const&,
|
||||||
cmStdString const&)
|
std::string const&)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1085,7 +1085,7 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||||||
}
|
}
|
||||||
if ( getenv("HTTP_PROXY_TYPE") )
|
if ( getenv("HTTP_PROXY_TYPE") )
|
||||||
{
|
{
|
||||||
cmStdString type = getenv("HTTP_PROXY_TYPE");
|
std::string type = getenv("HTTP_PROXY_TYPE");
|
||||||
// HTTP/SOCKS4/SOCKS5
|
// HTTP/SOCKS4/SOCKS5
|
||||||
if ( type == "HTTP" )
|
if ( type == "HTTP" )
|
||||||
{
|
{
|
||||||
@ -1122,7 +1122,7 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||||||
}
|
}
|
||||||
if ( getenv("FTP_PROXY_TYPE") )
|
if ( getenv("FTP_PROXY_TYPE") )
|
||||||
{
|
{
|
||||||
cmStdString type = getenv("FTP_PROXY_TYPE");
|
std::string type = getenv("FTP_PROXY_TYPE");
|
||||||
// HTTP/SOCKS4/SOCKS5
|
// HTTP/SOCKS4/SOCKS5
|
||||||
if ( type == "HTTP" )
|
if ( type == "HTTP" )
|
||||||
{
|
{
|
||||||
@ -1178,7 +1178,7 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||||||
this->CTest->AddIfExists(cmCTest::PartTest, "Test.xml");
|
this->CTest->AddIfExists(cmCTest::PartTest, "Test.xml");
|
||||||
if(this->CTest->AddIfExists(cmCTest::PartCoverage, "Coverage.xml"))
|
if(this->CTest->AddIfExists(cmCTest::PartCoverage, "Coverage.xml"))
|
||||||
{
|
{
|
||||||
cmCTest::VectorOfStrings gfiles;
|
std::vector<std::string> gfiles;
|
||||||
std::string gpath
|
std::string gpath
|
||||||
= buildDirectory + "/Testing/" + this->CTest->GetCurrentTag();
|
= buildDirectory + "/Testing/" + this->CTest->GetCurrentTag();
|
||||||
std::string::size_type glen = gpath.size() + 1;
|
std::string::size_type glen = gpath.size() + 1;
|
||||||
@ -1247,7 +1247,7 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||||||
}
|
}
|
||||||
this->SetLogFile(&ofs);
|
this->SetLogFile(&ofs);
|
||||||
|
|
||||||
cmStdString dropMethod(this->CTest->GetCTestConfiguration("DropMethod"));
|
std::string dropMethod(this->CTest->GetCTestConfiguration("DropMethod"));
|
||||||
|
|
||||||
if ( dropMethod == "" || dropMethod == "ftp" )
|
if ( dropMethod == "" || dropMethod == "ftp" )
|
||||||
{
|
{
|
||||||
|
@ -47,33 +47,33 @@ private:
|
|||||||
/**
|
/**
|
||||||
* Submit file using various ways
|
* Submit file using various ways
|
||||||
*/
|
*/
|
||||||
bool SubmitUsingFTP(const cmStdString& localprefix,
|
bool SubmitUsingFTP(const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url);
|
const std::string& url);
|
||||||
bool SubmitUsingHTTP(const cmStdString& localprefix,
|
bool SubmitUsingHTTP(const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url);
|
const std::string& url);
|
||||||
bool SubmitUsingSCP(const cmStdString& scp_command,
|
bool SubmitUsingSCP(const std::string& scp_command,
|
||||||
const cmStdString& localprefix,
|
const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url);
|
const std::string& url);
|
||||||
|
|
||||||
bool SubmitUsingCP( const cmStdString& localprefix,
|
bool SubmitUsingCP( const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url);
|
const std::string& url);
|
||||||
|
|
||||||
bool TriggerUsingHTTP(const std::set<cmStdString>& files,
|
bool TriggerUsingHTTP(const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url);
|
const std::string& url);
|
||||||
|
|
||||||
bool SubmitUsingXMLRPC(const cmStdString& localprefix,
|
bool SubmitUsingXMLRPC(const std::string& localprefix,
|
||||||
const std::set<cmStdString>& files,
|
const std::set<std::string>& files,
|
||||||
const cmStdString& remoteprefix,
|
const std::string& remoteprefix,
|
||||||
const cmStdString& url);
|
const std::string& url);
|
||||||
|
|
||||||
typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
|
typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
|
||||||
|
|
||||||
@ -82,10 +82,10 @@ private:
|
|||||||
std::string GetSubmitResultsPrefix();
|
std::string GetSubmitResultsPrefix();
|
||||||
|
|
||||||
class ResponseParser;
|
class ResponseParser;
|
||||||
cmStdString HTTPProxy;
|
std::string HTTPProxy;
|
||||||
int HTTPProxyType;
|
int HTTPProxyType;
|
||||||
cmStdString HTTPProxyAuth;
|
std::string HTTPProxyAuth;
|
||||||
cmStdString FTPProxy;
|
std::string FTPProxy;
|
||||||
int FTPProxyType;
|
int FTPProxyType;
|
||||||
std::ostream* LogFile;
|
std::ostream* LogFile;
|
||||||
bool SubmitPart[cmCTest::PartCount];
|
bool SubmitPart[cmCTest::PartCount];
|
||||||
|
@ -540,8 +540,8 @@ int cmCTestTestHandler::ProcessHandler()
|
|||||||
this->StartLogFile((this->MemCheck ? "DynamicAnalysis" : "Test"), mLogFile);
|
this->StartLogFile((this->MemCheck ? "DynamicAnalysis" : "Test"), mLogFile);
|
||||||
this->LogFile = &mLogFile;
|
this->LogFile = &mLogFile;
|
||||||
|
|
||||||
std::vector<cmStdString> passed;
|
std::vector<std::string> passed;
|
||||||
std::vector<cmStdString> failed;
|
std::vector<std::string> failed;
|
||||||
int total;
|
int total;
|
||||||
|
|
||||||
//start the real time clock
|
//start the real time clock
|
||||||
@ -569,7 +569,7 @@ int cmCTestTestHandler::ProcessHandler()
|
|||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, std::endl
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, std::endl
|
||||||
<< "The following tests passed:" << std::endl);
|
<< "The following tests passed:" << std::endl);
|
||||||
for(std::vector<cmStdString>::iterator j = passed.begin();
|
for(std::vector<std::string>::iterator j = passed.begin();
|
||||||
j != passed.end(); ++j)
|
j != passed.end(); ++j)
|
||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "\t" << *j
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "\t" << *j
|
||||||
@ -661,8 +661,8 @@ void cmCTestTestHandler::PrintLabelSummary()
|
|||||||
cmCTestTestHandler::ListOfTests::iterator it = this->TestList.begin();
|
cmCTestTestHandler::ListOfTests::iterator it = this->TestList.begin();
|
||||||
cmCTestTestHandler::TestResultsVector::iterator ri =
|
cmCTestTestHandler::TestResultsVector::iterator ri =
|
||||||
this->TestResults.begin();
|
this->TestResults.begin();
|
||||||
std::map<cmStdString, double> labelTimes;
|
std::map<std::string, double> labelTimes;
|
||||||
std::set<cmStdString> labels;
|
std::set<std::string> labels;
|
||||||
// initialize maps
|
// initialize maps
|
||||||
std::string::size_type maxlen = 0;
|
std::string::size_type maxlen = 0;
|
||||||
for(; it != this->TestList.end(); ++it)
|
for(; it != this->TestList.end(); ++it)
|
||||||
@ -702,7 +702,7 @@ void cmCTestTestHandler::PrintLabelSummary()
|
|||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nLabel Time Summary:");
|
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nLabel Time Summary:");
|
||||||
}
|
}
|
||||||
for(std::set<cmStdString>::const_iterator i = labels.begin();
|
for(std::set<std::string>::const_iterator i = labels.begin();
|
||||||
i != labels.end(); ++i)
|
i != labels.end(); ++i)
|
||||||
{
|
{
|
||||||
std::string label = *i;
|
std::string label = *i;
|
||||||
@ -1050,8 +1050,8 @@ bool cmCTestTestHandler::GetValue(const char* tag,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
|
void cmCTestTestHandler::ProcessDirectory(std::vector<std::string> &passed,
|
||||||
std::vector<cmStdString> &failed)
|
std::vector<std::string> &failed)
|
||||||
{
|
{
|
||||||
this->ComputeTestList();
|
this->ComputeTestList();
|
||||||
this->StartTest = this->CTest->CurrentTime();
|
this->StartTest = this->CTest->CurrentTime();
|
||||||
@ -1216,7 +1216,7 @@ void cmCTestTestHandler::GenerateDartOutput(std::ostream& os)
|
|||||||
<< "name=\"Command Line\"><Value>"
|
<< "name=\"Command Line\"><Value>"
|
||||||
<< cmXMLSafe(result->FullCommandLine)
|
<< cmXMLSafe(result->FullCommandLine)
|
||||||
<< "</Value></NamedMeasurement>\n";
|
<< "</Value></NamedMeasurement>\n";
|
||||||
std::map<cmStdString,cmStdString>::iterator measureIt;
|
std::map<std::string,std::string>::iterator measureIt;
|
||||||
for ( measureIt = result->Properties->Measurements.begin();
|
for ( measureIt = result->Properties->Measurements.begin();
|
||||||
measureIt != result->Properties->Measurements.end();
|
measureIt != result->Properties->Measurements.end();
|
||||||
++ measureIt )
|
++ measureIt )
|
||||||
@ -1328,9 +1328,9 @@ void cmCTestTestHandler::AttachFiles(std::ostream& os,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
int cmCTestTestHandler::ExecuteCommands(std::vector<cmStdString>& vec)
|
int cmCTestTestHandler::ExecuteCommands(std::vector<std::string>& vec)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = vec.begin(); it != vec.end(); ++it )
|
for ( it = vec.begin(); it != vec.end(); ++it )
|
||||||
{
|
{
|
||||||
int retVal = 0;
|
int retVal = 0;
|
||||||
@ -2112,7 +2112,7 @@ bool cmCTestTestHandler::SetTestsProperties(
|
|||||||
const std::vector<std::string>& args)
|
const std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
std::vector<std::string>::const_iterator it;
|
std::vector<std::string>::const_iterator it;
|
||||||
std::vector<cmStdString> tests;
|
std::vector<std::string> tests;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for ( it = args.begin(); it != args.end(); ++ it )
|
for ( it = args.begin(); it != args.end(); ++ it )
|
||||||
{
|
{
|
||||||
@ -2137,7 +2137,7 @@ bool cmCTestTestHandler::SetTestsProperties(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
std::string val = *it;
|
std::string val = *it;
|
||||||
std::vector<cmStdString>::const_iterator tit;
|
std::vector<std::string>::const_iterator tit;
|
||||||
for ( tit = tests.begin(); tit != tests.end(); ++ tit )
|
for ( tit = tests.begin(); tit != tests.end(); ++ tit )
|
||||||
{
|
{
|
||||||
cmCTestTestHandler::ListOfTests::iterator rtit;
|
cmCTestTestHandler::ListOfTests::iterator rtit;
|
||||||
@ -2319,7 +2319,7 @@ bool cmCTestTestHandler::AddTest(const std::vector<std::string>& args)
|
|||||||
}
|
}
|
||||||
if ( this->MemCheck )
|
if ( this->MemCheck )
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for ( it = this->CustomTestsIgnore.begin();
|
for ( it = this->CustomTestsIgnore.begin();
|
||||||
it != this->CustomTestsIgnore.end(); ++ it )
|
it != this->CustomTestsIgnore.end(); ++ it )
|
||||||
@ -2339,7 +2339,7 @@ bool cmCTestTestHandler::AddTest(const std::vector<std::string>& args)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for ( it = this->CustomTestsIgnore.begin();
|
for ( it = this->CustomTestsIgnore.begin();
|
||||||
it != this->CustomTestsIgnore.end(); ++ it )
|
it != this->CustomTestsIgnore.end(); ++ it )
|
||||||
|
@ -87,8 +87,8 @@ public:
|
|||||||
// ctest -j N will break for that feature
|
// ctest -j N will break for that feature
|
||||||
struct cmCTestTestProperties
|
struct cmCTestTestProperties
|
||||||
{
|
{
|
||||||
cmStdString Name;
|
std::string Name;
|
||||||
cmStdString Directory;
|
std::string Directory;
|
||||||
std::vector<std::string> Args;
|
std::vector<std::string> Args;
|
||||||
std::vector<std::string> RequiredFiles;
|
std::vector<std::string> RequiredFiles;
|
||||||
std::vector<std::string> Depends;
|
std::vector<std::string> Depends;
|
||||||
@ -98,7 +98,7 @@ public:
|
|||||||
std::string> > ErrorRegularExpressions;
|
std::string> > ErrorRegularExpressions;
|
||||||
std::vector<std::pair<cmsys::RegularExpression,
|
std::vector<std::pair<cmsys::RegularExpression,
|
||||||
std::string> > RequiredRegularExpressions;
|
std::string> > RequiredRegularExpressions;
|
||||||
std::map<cmStdString, cmStdString> Measurements;
|
std::map<std::string, std::string> Measurements;
|
||||||
bool IsInBasedOnREOptions;
|
bool IsInBasedOnREOptions;
|
||||||
bool WillFail;
|
bool WillFail;
|
||||||
float Cost;
|
float Cost;
|
||||||
@ -162,7 +162,7 @@ protected:
|
|||||||
virtual int PreProcessHandler();
|
virtual int PreProcessHandler();
|
||||||
virtual int PostProcessHandler();
|
virtual int PostProcessHandler();
|
||||||
virtual void GenerateTestCommand(std::vector<std::string>& args, int test);
|
virtual void GenerateTestCommand(std::vector<std::string>& args, int test);
|
||||||
int ExecuteCommands(std::vector<cmStdString>& vec);
|
int ExecuteCommands(std::vector<std::string>& vec);
|
||||||
|
|
||||||
void WriteTestResultHeader(std::ostream& os, cmCTestTestResult* result);
|
void WriteTestResultHeader(std::ostream& os, cmCTestTestResult* result);
|
||||||
void WriteTestResultFooter(std::ostream& os, cmCTestTestResult* result);
|
void WriteTestResultFooter(std::ostream& os, cmCTestTestResult* result);
|
||||||
@ -177,7 +177,7 @@ protected:
|
|||||||
typedef std::vector<cmCTestTestResult> TestResultsVector;
|
typedef std::vector<cmCTestTestResult> TestResultsVector;
|
||||||
TestResultsVector TestResults;
|
TestResultsVector TestResults;
|
||||||
|
|
||||||
std::vector<cmStdString> CustomTestsIgnore;
|
std::vector<std::string> CustomTestsIgnore;
|
||||||
std::string StartTest;
|
std::string StartTest;
|
||||||
std::string EndTest;
|
std::string EndTest;
|
||||||
unsigned int StartTestTime;
|
unsigned int StartTestTime;
|
||||||
@ -210,8 +210,8 @@ private:
|
|||||||
/**
|
/**
|
||||||
* Run the tests for a directory and any subdirectories
|
* Run the tests for a directory and any subdirectories
|
||||||
*/
|
*/
|
||||||
void ProcessDirectory(std::vector<cmStdString> &passed,
|
void ProcessDirectory(std::vector<std::string> &passed,
|
||||||
std::vector<cmStdString> &failed);
|
std::vector<std::string> &failed);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the list of tests in directory and subdirectories.
|
* Get the list of tests in directory and subdirectories.
|
||||||
@ -251,8 +251,8 @@ private:
|
|||||||
void ExpandTestsToRunInformation(size_t numPossibleTests);
|
void ExpandTestsToRunInformation(size_t numPossibleTests);
|
||||||
void ExpandTestsToRunInformationForRerunFailed();
|
void ExpandTestsToRunInformationForRerunFailed();
|
||||||
|
|
||||||
std::vector<cmStdString> CustomPreTest;
|
std::vector<std::string> CustomPreTest;
|
||||||
std::vector<cmStdString> CustomPostTest;
|
std::vector<std::string> CustomPostTest;
|
||||||
|
|
||||||
std::vector<int> TestsToRun;
|
std::vector<int> TestsToRun;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ bool cmCTestUploadCommand::CheckArgumentValue(std::string const& arg)
|
|||||||
{
|
{
|
||||||
if(this->ArgumentDoing == ArgumentDoingFiles)
|
if(this->ArgumentDoing == ArgumentDoingFiles)
|
||||||
{
|
{
|
||||||
cmStdString filename(arg);
|
std::string filename(arg);
|
||||||
if(cmSystemTools::FileExists(filename.c_str()))
|
if(cmSystemTools::FileExists(filename.c_str()))
|
||||||
{
|
{
|
||||||
this->Files.insert(filename);
|
this->Files.insert(filename);
|
||||||
|
@ -63,9 +63,9 @@ bool cmCTestVC::InitialCheckout(const char* command)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct the initial checkout command line.
|
// Construct the initial checkout command line.
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(command);
|
std::vector<std::string> args = cmSystemTools::ParseArguments(command);
|
||||||
std::vector<char const*> vc_co;
|
std::vector<char const*> vc_co;
|
||||||
for(std::vector<cmStdString>::const_iterator ai = args.begin();
|
for(std::vector<std::string>::const_iterator ai = args.begin();
|
||||||
ai != args.end(); ++ai)
|
ai != args.end(); ++ai)
|
||||||
{
|
{
|
||||||
vc_co.push_back(ai->c_str());
|
vc_co.push_back(ai->c_str());
|
||||||
|
@ -182,7 +182,7 @@ bool cmParseGTMCoverage::ParseMCOVLine(std::string const& line,
|
|||||||
// ( file , entry ) = "number_executed:timing_info"
|
// ( file , entry ) = "number_executed:timing_info"
|
||||||
// ^COVERAGE("%RSEL","init",8,"FOR_LOOP",1)=1
|
// ^COVERAGE("%RSEL","init",8,"FOR_LOOP",1)=1
|
||||||
// ( file , entry, line, IGNORE ) =number_executed
|
// ( file , entry, line, IGNORE ) =number_executed
|
||||||
std::vector<cmStdString> args;
|
std::vector<std::string> args;
|
||||||
std::string::size_type pos = line.find('(', 0);
|
std::string::size_type pos = line.find('(', 0);
|
||||||
// if no ( is found, then return line has no coverage
|
// if no ( is found, then return line has no coverage
|
||||||
if(pos == std::string::npos)
|
if(pos == std::string::npos)
|
||||||
|
@ -140,7 +140,7 @@ bool cmParseMumpsCoverage::LoadPackages(const char* d)
|
|||||||
bool cmParseMumpsCoverage::FindMumpsFile(std::string const& routine,
|
bool cmParseMumpsCoverage::FindMumpsFile(std::string const& routine,
|
||||||
std::string& filepath)
|
std::string& filepath)
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmStdString>::iterator i =
|
std::map<std::string, std::string>::iterator i =
|
||||||
this->RoutineToDirectory.find(routine);
|
this->RoutineToDirectory.find(routine);
|
||||||
if(i != this->RoutineToDirectory.end())
|
if(i != this->RoutineToDirectory.end())
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ protected:
|
|||||||
bool FindMumpsFile(std::string const& routine,
|
bool FindMumpsFile(std::string const& routine,
|
||||||
std::string& filepath);
|
std::string& filepath);
|
||||||
protected:
|
protected:
|
||||||
std::map<cmStdString, cmStdString> RoutineToDirectory;
|
std::map<std::string, std::string> RoutineToDirectory;
|
||||||
cmCTestCoverageHandlerContainer& Coverage;
|
cmCTestCoverageHandlerContainer& Coverage;
|
||||||
cmCTest* CTest;
|
cmCTest* CTest;
|
||||||
};
|
};
|
||||||
|
@ -34,7 +34,7 @@ bool cmParsePHPCoverage::ReadUntil(std::istream& in, char until)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool cmParsePHPCoverage::ReadCoverageArray(std::istream& in,
|
bool cmParsePHPCoverage::ReadCoverageArray(std::istream& in,
|
||||||
cmStdString const& fileName)
|
std::string const& fileName)
|
||||||
{
|
{
|
||||||
cmCTestCoverageHandlerContainer::SingleFileCoverageVector& coverageVector
|
cmCTestCoverageHandlerContainer::SingleFileCoverageVector& coverageVector
|
||||||
= this->Coverage.TotalCoverage[fileName];
|
= this->Coverage.TotalCoverage[fileName];
|
||||||
@ -166,7 +166,7 @@ bool cmParsePHPCoverage::ReadFileInformation(std::istream& in)
|
|||||||
// read the string data
|
// read the string data
|
||||||
in.read(s, size-1);
|
in.read(s, size-1);
|
||||||
s[size-1] = 0;
|
s[size-1] = 0;
|
||||||
cmStdString fileName = s;
|
std::string fileName = s;
|
||||||
delete [] s;
|
delete [] s;
|
||||||
// read close quote
|
// read close quote
|
||||||
if(in.get(c) && c != '"')
|
if(in.get(c) && c != '"')
|
||||||
|
@ -35,7 +35,7 @@ private:
|
|||||||
bool ReadArraySize(std::istream& in, int& size);
|
bool ReadArraySize(std::istream& in, int& size);
|
||||||
bool ReadFileInformation(std::istream& in);
|
bool ReadFileInformation(std::istream& in);
|
||||||
bool ReadInt(std::istream& in, int& v);
|
bool ReadInt(std::istream& in, int& v);
|
||||||
bool ReadCoverageArray(std::istream& in, cmStdString const&);
|
bool ReadCoverageArray(std::istream& in, std::string const&);
|
||||||
bool ReadUntil(std::istream& in, char until);
|
bool ReadUntil(std::istream& in, char until);
|
||||||
cmCTestCoverageHandlerContainer& Coverage;
|
cmCTestCoverageHandlerContainer& Coverage;
|
||||||
cmCTest* CTest;
|
cmCTest* CTest;
|
||||||
|
@ -57,7 +57,7 @@ void cmCursesPathWidget::OnTab(cmCursesMainForm* fm, WINDOW* w)
|
|||||||
{
|
{
|
||||||
glob = cstr + "*";
|
glob = cstr + "*";
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> dirs;
|
std::vector<std::string> dirs;
|
||||||
|
|
||||||
cmSystemTools::SimpleGlob(glob.c_str(), dirs, (this->Type == cmCacheManager::PATH?-1:0));
|
cmSystemTools::SimpleGlob(glob.c_str(), dirs, (this->Type == cmCacheManager::PATH?-1:0));
|
||||||
if ( this->CurrentIndex < dirs.size() )
|
if ( this->CurrentIndex < dirs.size() )
|
||||||
|
@ -1153,7 +1153,7 @@ int cmCTest::RunMakeCommand(const char* command, std::string* output,
|
|||||||
int* retVal, const char* dir, int timeout, std::ostream& ofs)
|
int* retVal, const char* dir, int timeout, std::ostream& ofs)
|
||||||
{
|
{
|
||||||
// First generate the command and arguments
|
// First generate the command and arguments
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(command);
|
std::vector<std::string> args = cmSystemTools::ParseArguments(command);
|
||||||
|
|
||||||
if(args.size() < 1)
|
if(args.size() < 1)
|
||||||
{
|
{
|
||||||
@ -1161,7 +1161,7 @@ int cmCTest::RunMakeCommand(const char* command, std::string* output,
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<const char*> argv;
|
std::vector<const char*> argv;
|
||||||
for(std::vector<cmStdString>::const_iterator a = args.begin();
|
for(std::vector<std::string>::const_iterator a = args.begin();
|
||||||
a != args.end(); ++a)
|
a != args.end(); ++a)
|
||||||
{
|
{
|
||||||
argv.push_back(a->c_str());
|
argv.push_back(a->c_str());
|
||||||
@ -1637,7 +1637,7 @@ int cmCTest::GenerateCTestNotesOutput(std::ostream& os,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
int cmCTest::GenerateNotesFile(const std::vector<cmStdString> &files)
|
int cmCTest::GenerateNotesFile(const VectorOfStrings &files)
|
||||||
{
|
{
|
||||||
cmGeneratedFileStream ofs;
|
cmGeneratedFileStream ofs;
|
||||||
if ( !this->OpenOutputFile(this->CurrentTag, "Notes.xml", ofs) )
|
if ( !this->OpenOutputFile(this->CurrentTag, "Notes.xml", ofs) )
|
||||||
@ -1658,7 +1658,7 @@ int cmCTest::GenerateNotesFile(const char* cfiles)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<cmStdString> files;
|
VectorOfStrings files;
|
||||||
|
|
||||||
cmCTestLog(this, OUTPUT, "Create notes file" << std::endl);
|
cmCTestLog(this, OUTPUT, "Create notes file" << std::endl);
|
||||||
|
|
||||||
@ -1675,7 +1675,7 @@ int cmCTest::GenerateNotesFile(const char* cfiles)
|
|||||||
std::string cmCTest::Base64GzipEncodeFile(std::string file)
|
std::string cmCTest::Base64GzipEncodeFile(std::string file)
|
||||||
{
|
{
|
||||||
std::string tarFile = file + "_temp.tar.gz";
|
std::string tarFile = file + "_temp.tar.gz";
|
||||||
std::vector<cmStdString> files;
|
std::vector<std::string> files;
|
||||||
files.push_back(file);
|
files.push_back(file);
|
||||||
|
|
||||||
if(!cmSystemTools::CreateTar(tarFile.c_str(), files, true, false, false))
|
if(!cmSystemTools::CreateTar(tarFile.c_str(), files, true, false, false))
|
||||||
@ -1722,9 +1722,9 @@ std::string cmCTest::Base64EncodeFile(std::string file)
|
|||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool cmCTest::SubmitExtraFiles(const std::vector<cmStdString> &files)
|
bool cmCTest::SubmitExtraFiles(const VectorOfStrings &files)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::const_iterator it;
|
VectorOfStrings::const_iterator it;
|
||||||
for ( it = files.begin();
|
for ( it = files.begin();
|
||||||
it != files.end();
|
it != files.end();
|
||||||
++ it )
|
++ it )
|
||||||
@ -1749,7 +1749,7 @@ bool cmCTest::SubmitExtraFiles(const char* cfiles)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<cmStdString> files;
|
VectorOfStrings files;
|
||||||
|
|
||||||
cmCTestLog(this, OUTPUT, "Submit extra files" << std::endl);
|
cmCTestLog(this, OUTPUT, "Submit extra files" << std::endl);
|
||||||
|
|
||||||
@ -2594,7 +2594,7 @@ int cmCTest::ReadCustomConfigurationFileTree(const char* dir, cmMakefile* mf)
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
void cmCTest::PopulateCustomVector(cmMakefile* mf, const std::string& def,
|
void cmCTest::PopulateCustomVector(cmMakefile* mf, const std::string& def,
|
||||||
VectorOfStrings& vec)
|
std::vector<std::string>& vec)
|
||||||
{
|
{
|
||||||
const char* dval = mf->GetDefinition(def);
|
const char* dval = mf->GetDefinition(def);
|
||||||
if ( !dval )
|
if ( !dval )
|
||||||
@ -2892,7 +2892,7 @@ bool cmCTest::RunCommand(
|
|||||||
const char* dir,
|
const char* dir,
|
||||||
double timeout)
|
double timeout)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString> args = cmSystemTools::ParseArguments(command);
|
std::vector<std::string> args = cmSystemTools::ParseArguments(command);
|
||||||
|
|
||||||
if(args.size() < 1)
|
if(args.size() < 1)
|
||||||
{
|
{
|
||||||
@ -2900,7 +2900,7 @@ bool cmCTest::RunCommand(
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<const char*> argv;
|
std::vector<const char*> argv;
|
||||||
for(std::vector<cmStdString>::const_iterator a = args.begin();
|
for(std::vector<std::string>::const_iterator a = args.begin();
|
||||||
a != args.end(); ++a)
|
a != args.end(); ++a)
|
||||||
{
|
{
|
||||||
argv.push_back(a->c_str());
|
argv.push_back(a->c_str());
|
||||||
|
@ -101,8 +101,8 @@ public:
|
|||||||
if the string does not name a valid part. */
|
if the string does not name a valid part. */
|
||||||
Part GetPartFromName(const char* name);
|
Part GetPartFromName(const char* name);
|
||||||
|
|
||||||
typedef std::vector<cmStdString> VectorOfStrings;
|
typedef std::vector<cmsys::String> VectorOfStrings;
|
||||||
typedef std::set<cmStdString> SetOfStrings;
|
typedef std::set<std::string> SetOfStrings;
|
||||||
|
|
||||||
///! Process Command line arguments
|
///! Process Command line arguments
|
||||||
int Run(std::vector<std::string> &, std::string* output = 0);
|
int Run(std::vector<std::string> &, std::string* output = 0);
|
||||||
@ -186,7 +186,7 @@ public:
|
|||||||
void SetNotesFiles(const char* notes);
|
void SetNotesFiles(const char* notes);
|
||||||
|
|
||||||
void PopulateCustomVector(cmMakefile* mf, const std::string& definition,
|
void PopulateCustomVector(cmMakefile* mf, const std::string& definition,
|
||||||
VectorOfStrings& vec);
|
std::vector<std::string>& vec);
|
||||||
void PopulateCustomInteger(cmMakefile* mf, const std::string& def,
|
void PopulateCustomInteger(cmMakefile* mf, const std::string& def,
|
||||||
int& val);
|
int& val);
|
||||||
|
|
||||||
@ -352,11 +352,11 @@ public:
|
|||||||
void AddCTestConfigurationOverwrite(const std::string& encstr);
|
void AddCTestConfigurationOverwrite(const std::string& encstr);
|
||||||
|
|
||||||
//! Create XML file that contains all the notes specified
|
//! Create XML file that contains all the notes specified
|
||||||
int GenerateNotesFile(const std::vector<cmStdString> &files);
|
int GenerateNotesFile(const VectorOfStrings &files);
|
||||||
|
|
||||||
//! Submit extra files to the server
|
//! Submit extra files to the server
|
||||||
bool SubmitExtraFiles(const char* files);
|
bool SubmitExtraFiles(const char* files);
|
||||||
bool SubmitExtraFiles(const std::vector<cmStdString> &files);
|
bool SubmitExtraFiles(const VectorOfStrings &files);
|
||||||
|
|
||||||
//! Set the output log file name
|
//! Set the output log file name
|
||||||
void SetOutputLogFileName(const char* name);
|
void SetOutputLogFileName(const char* name);
|
||||||
@ -391,7 +391,7 @@ public:
|
|||||||
//! Read the custom configuration files and apply them to the current ctest
|
//! Read the custom configuration files and apply them to the current ctest
|
||||||
int ReadCustomConfigurationFileTree(const char* dir, cmMakefile* mf);
|
int ReadCustomConfigurationFileTree(const char* dir, cmMakefile* mf);
|
||||||
|
|
||||||
std::vector<cmStdString> &GetInitialCommandLineArguments()
|
std::vector<std::string> &GetInitialCommandLineArguments()
|
||||||
{ return this->InitialCommandLineArguments; };
|
{ return this->InitialCommandLineArguments; };
|
||||||
|
|
||||||
//! Set the track to submit to
|
//! Set the track to submit to
|
||||||
@ -447,13 +447,13 @@ private:
|
|||||||
void DetermineNextDayStop();
|
void DetermineNextDayStop();
|
||||||
|
|
||||||
// these are helper classes
|
// these are helper classes
|
||||||
typedef std::map<cmStdString,cmCTestGenericHandler*> t_TestingHandlers;
|
typedef std::map<std::string,cmCTestGenericHandler*> t_TestingHandlers;
|
||||||
t_TestingHandlers TestingHandlers;
|
t_TestingHandlers TestingHandlers;
|
||||||
|
|
||||||
bool ShowOnly;
|
bool ShowOnly;
|
||||||
|
|
||||||
//! Map of configuration properties
|
//! Map of configuration properties
|
||||||
typedef std::map<cmStdString, cmStdString> CTestConfigurationMap;
|
typedef std::map<std::string, std::string> CTestConfigurationMap;
|
||||||
|
|
||||||
std::string CTestConfigFile;
|
std::string CTestConfigFile;
|
||||||
// TODO: The ctest configuration should be a hierarchy of
|
// TODO: The ctest configuration should be a hierarchy of
|
||||||
@ -463,7 +463,7 @@ private:
|
|||||||
CTestConfigurationMap CTestConfiguration;
|
CTestConfigurationMap CTestConfiguration;
|
||||||
CTestConfigurationMap CTestConfigurationOverwrites;
|
CTestConfigurationMap CTestConfigurationOverwrites;
|
||||||
PartInfo Parts[PartCount];
|
PartInfo Parts[PartCount];
|
||||||
typedef std::map<cmStdString, Part> PartMapType;
|
typedef std::map<std::string, Part> PartMapType;
|
||||||
PartMapType PartMap;
|
PartMapType PartMap;
|
||||||
|
|
||||||
std::string CurrentTag;
|
std::string CurrentTag;
|
||||||
@ -556,7 +556,7 @@ private:
|
|||||||
int DartVersion;
|
int DartVersion;
|
||||||
bool DropSiteCDash;
|
bool DropSiteCDash;
|
||||||
|
|
||||||
std::vector<cmStdString> InitialCommandLineArguments;
|
std::vector<std::string> InitialCommandLineArguments;
|
||||||
|
|
||||||
int SubmitIndex;
|
int SubmitIndex;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ bool cmCacheManager::LoadCache(const std::string& path)
|
|||||||
bool cmCacheManager::LoadCache(const std::string& path,
|
bool cmCacheManager::LoadCache(const std::string& path,
|
||||||
bool internal)
|
bool internal)
|
||||||
{
|
{
|
||||||
std::set<cmStdString> emptySet;
|
std::set<std::string> emptySet;
|
||||||
return this->LoadCache(path, internal, emptySet, emptySet);
|
return this->LoadCache(path, internal, emptySet, emptySet);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,8 +195,8 @@ void cmCacheManager::CleanCMakeFiles(const std::string& path)
|
|||||||
|
|
||||||
bool cmCacheManager::LoadCache(const std::string& path,
|
bool cmCacheManager::LoadCache(const std::string& path,
|
||||||
bool internal,
|
bool internal,
|
||||||
std::set<cmStdString>& excludes,
|
std::set<std::string>& excludes,
|
||||||
std::set<cmStdString>& includes)
|
std::set<std::string>& includes)
|
||||||
{
|
{
|
||||||
std::string cacheFile = path;
|
std::string cacheFile = path;
|
||||||
cacheFile += "/CMakeCache.txt";
|
cacheFile += "/CMakeCache.txt";
|
||||||
@ -500,7 +500,7 @@ bool cmCacheManager::SaveCache(const std::string& path)
|
|||||||
fout << "########################\n";
|
fout << "########################\n";
|
||||||
fout << "\n";
|
fout << "\n";
|
||||||
|
|
||||||
for( std::map<cmStdString, CacheEntry>::const_iterator i =
|
for( std::map<std::string, CacheEntry>::const_iterator i =
|
||||||
this->Cache.begin(); i != this->Cache.end(); ++i)
|
this->Cache.begin(); i != this->Cache.end(); ++i)
|
||||||
{
|
{
|
||||||
const CacheEntry& ce = (*i).second;
|
const CacheEntry& ce = (*i).second;
|
||||||
@ -693,7 +693,7 @@ void cmCacheManager::PrintCache(std::ostream& out) const
|
|||||||
{
|
{
|
||||||
out << "=================================================" << std::endl;
|
out << "=================================================" << std::endl;
|
||||||
out << "CMakeCache Contents:" << std::endl;
|
out << "CMakeCache Contents:" << std::endl;
|
||||||
for(std::map<cmStdString, CacheEntry>::const_iterator i =
|
for(std::map<std::string, CacheEntry>::const_iterator i =
|
||||||
this->Cache.begin(); i != this->Cache.end(); ++i)
|
this->Cache.begin(); i != this->Cache.end(); ++i)
|
||||||
{
|
{
|
||||||
if((*i).second.Type != INTERNAL)
|
if((*i).second.Type != INTERNAL)
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
void SetType(CacheEntryType ty) { this->GetEntry().Type = ty; }
|
void SetType(CacheEntryType ty) { this->GetEntry().Type = ty; }
|
||||||
bool Initialized() { return this->GetEntry().Initialized; }
|
bool Initialized() { return this->GetEntry().Initialized; }
|
||||||
cmCacheManager &Container;
|
cmCacheManager &Container;
|
||||||
std::map<cmStdString, CacheEntry>::iterator Position;
|
std::map<std::string, CacheEntry>::iterator Position;
|
||||||
CacheIterator(cmCacheManager &cm) : Container(cm) {
|
CacheIterator(cmCacheManager &cm) : Container(cm) {
|
||||||
this->Begin();
|
this->Begin();
|
||||||
}
|
}
|
||||||
@ -111,8 +111,8 @@ public:
|
|||||||
bool LoadCache(const std::string& path);
|
bool LoadCache(const std::string& path);
|
||||||
bool LoadCache(const std::string& path, bool internal);
|
bool LoadCache(const std::string& path, bool internal);
|
||||||
bool LoadCache(const std::string& path, bool internal,
|
bool LoadCache(const std::string& path, bool internal,
|
||||||
std::set<cmStdString>& excludes,
|
std::set<std::string>& excludes,
|
||||||
std::set<cmStdString>& includes);
|
std::set<std::string>& includes);
|
||||||
|
|
||||||
///! Save cache for given makefile. Saves to ouput home CMakeCache.txt.
|
///! Save cache for given makefile. Saves to ouput home CMakeCache.txt.
|
||||||
bool SaveCache(cmMakefile*) ;
|
bool SaveCache(cmMakefile*) ;
|
||||||
@ -166,7 +166,7 @@ protected:
|
|||||||
unsigned int CacheMinorVersion;
|
unsigned int CacheMinorVersion;
|
||||||
private:
|
private:
|
||||||
cmake* CMakeInstance;
|
cmake* CMakeInstance;
|
||||||
typedef std::map<cmStdString, CacheEntry> CacheEntryMap;
|
typedef std::map<std::string, CacheEntry> CacheEntryMap;
|
||||||
static void OutputHelpString(std::ostream& fout,
|
static void OutputHelpString(std::ostream& fout,
|
||||||
const std::string& helpString);
|
const std::string& helpString);
|
||||||
static void OutputKey(std::ostream& fout, std::string const& key);
|
static void OutputKey(std::ostream& fout, std::string const& key);
|
||||||
|
@ -77,8 +77,8 @@ public:
|
|||||||
char BSLASHVariable[3];
|
char BSLASHVariable[3];
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmStdString::size_type InputBufferPos;
|
std::string::size_type InputBufferPos;
|
||||||
cmStdString InputBuffer;
|
std::string InputBuffer;
|
||||||
std::vector<char> OutputBuffer;
|
std::vector<char> OutputBuffer;
|
||||||
int CurrentLine;
|
int CurrentLine;
|
||||||
int Verbose;
|
int Verbose;
|
||||||
|
@ -279,12 +279,12 @@ cmComputeLinkDepends::Compute()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
std::map<cmStdString, int>::iterator
|
std::map<std::string, int>::iterator
|
||||||
cmComputeLinkDepends::AllocateLinkEntry(std::string const& item)
|
cmComputeLinkDepends::AllocateLinkEntry(std::string const& item)
|
||||||
{
|
{
|
||||||
std::map<cmStdString, int>::value_type
|
std::map<std::string, int>::value_type
|
||||||
index_entry(item, static_cast<int>(this->EntryList.size()));
|
index_entry(item, static_cast<int>(this->EntryList.size()));
|
||||||
std::map<cmStdString, int>::iterator
|
std::map<std::string, int>::iterator
|
||||||
lei = this->LinkEntryIndex.insert(index_entry).first;
|
lei = this->LinkEntryIndex.insert(index_entry).first;
|
||||||
this->EntryList.push_back(LinkEntry());
|
this->EntryList.push_back(LinkEntry());
|
||||||
this->InferredDependSets.push_back(0);
|
this->InferredDependSets.push_back(0);
|
||||||
@ -297,7 +297,7 @@ int cmComputeLinkDepends::AddLinkEntry(int depender_index,
|
|||||||
std::string const& item)
|
std::string const& item)
|
||||||
{
|
{
|
||||||
// Check if the item entry has already been added.
|
// Check if the item entry has already been added.
|
||||||
std::map<cmStdString, int>::iterator lei = this->LinkEntryIndex.find(item);
|
std::map<std::string, int>::iterator lei = this->LinkEntryIndex.find(item);
|
||||||
if(lei != this->LinkEntryIndex.end())
|
if(lei != this->LinkEntryIndex.end())
|
||||||
{
|
{
|
||||||
// Yes. We do not need to follow the item's dependencies again.
|
// Yes. We do not need to follow the item's dependencies again.
|
||||||
@ -423,7 +423,7 @@ cmComputeLinkDepends
|
|||||||
void cmComputeLinkDepends::HandleSharedDependency(SharedDepEntry const& dep)
|
void cmComputeLinkDepends::HandleSharedDependency(SharedDepEntry const& dep)
|
||||||
{
|
{
|
||||||
// Check if the target already has an entry.
|
// Check if the target already has an entry.
|
||||||
std::map<cmStdString, int>::iterator lei =
|
std::map<std::string, int>::iterator lei =
|
||||||
this->LinkEntryIndex.find(dep.Item);
|
this->LinkEntryIndex.find(dep.Item);
|
||||||
if(lei == this->LinkEntryIndex.end())
|
if(lei == this->LinkEntryIndex.end())
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@ private:
|
|||||||
|
|
||||||
typedef cmTarget::LinkLibraryVectorType LinkLibraryVectorType;
|
typedef cmTarget::LinkLibraryVectorType LinkLibraryVectorType;
|
||||||
|
|
||||||
std::map<cmStdString, int>::iterator
|
std::map<std::string, int>::iterator
|
||||||
AllocateLinkEntry(std::string const& item);
|
AllocateLinkEntry(std::string const& item);
|
||||||
int AddLinkEntry(int depender_index, std::string const& item);
|
int AddLinkEntry(int depender_index, std::string const& item);
|
||||||
void AddVarLinkEntries(int depender_index, const char* value);
|
void AddVarLinkEntries(int depender_index, const char* value);
|
||||||
@ -88,7 +88,7 @@ private:
|
|||||||
|
|
||||||
// One entry for each unique item.
|
// One entry for each unique item.
|
||||||
std::vector<LinkEntry> EntryList;
|
std::vector<LinkEntry> EntryList;
|
||||||
std::map<cmStdString, int> LinkEntryIndex;
|
std::map<std::string, int> LinkEntryIndex;
|
||||||
|
|
||||||
// BFS of initial dependencies.
|
// BFS of initial dependencies.
|
||||||
struct BFSEntry
|
struct BFSEntry
|
||||||
|
@ -902,7 +902,7 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
|
|||||||
// be the library name. Match index 3 will be the library
|
// be the library name. Match index 3 will be the library
|
||||||
// extension.
|
// extension.
|
||||||
reg = "^(";
|
reg = "^(";
|
||||||
for(std::set<cmStdString>::iterator p = this->LinkPrefixes.begin();
|
for(std::set<std::string>::iterator p = this->LinkPrefixes.begin();
|
||||||
p != this->LinkPrefixes.end(); ++p)
|
p != this->LinkPrefixes.end(); ++p)
|
||||||
{
|
{
|
||||||
reg += *p;
|
reg += *p;
|
||||||
@ -1640,7 +1640,7 @@ void cmComputeLinkInformation::PrintLinkPolicyDiagnosis(std::ostream& os)
|
|||||||
|
|
||||||
// List the paths old behavior is adding.
|
// List the paths old behavior is adding.
|
||||||
os << "and other libraries with known full path:\n";
|
os << "and other libraries with known full path:\n";
|
||||||
std::set<cmStdString> emitted;
|
std::set<std::string> emitted;
|
||||||
for(std::vector<std::string>::const_iterator
|
for(std::vector<std::string>::const_iterator
|
||||||
i = this->OldLinkDirItems.begin();
|
i = this->OldLinkDirItems.begin();
|
||||||
i != this->OldLinkDirItems.end(); ++i)
|
i != this->OldLinkDirItems.end(); ++i)
|
||||||
@ -1856,7 +1856,7 @@ cmComputeLinkInformation::AddLibraryRuntimeInfo(std::string const& fullPath)
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
static void cmCLI_ExpandListUnique(const char* str,
|
static void cmCLI_ExpandListUnique(const char* str,
|
||||||
std::vector<std::string>& out,
|
std::vector<std::string>& out,
|
||||||
std::set<cmStdString>& emitted)
|
std::set<std::string>& emitted)
|
||||||
{
|
{
|
||||||
std::vector<std::string> tmp;
|
std::vector<std::string> tmp;
|
||||||
cmSystemTools::ExpandListArgument(str, tmp);
|
cmSystemTools::ExpandListArgument(str, tmp);
|
||||||
@ -1894,7 +1894,7 @@ void cmComputeLinkInformation::GetRPath(std::vector<std::string>& runtimeDirs,
|
|||||||
this->Target->GetPropertyAsBool("INSTALL_RPATH_USE_LINK_PATH");
|
this->Target->GetPropertyAsBool("INSTALL_RPATH_USE_LINK_PATH");
|
||||||
|
|
||||||
// Construct the RPATH.
|
// Construct the RPATH.
|
||||||
std::set<cmStdString> emitted;
|
std::set<std::string> emitted;
|
||||||
if(use_install_rpath)
|
if(use_install_rpath)
|
||||||
{
|
{
|
||||||
const char* install_rpath = this->Target->GetProperty("INSTALL_RPATH");
|
const char* install_rpath = this->Target->GetProperty("INSTALL_RPATH");
|
||||||
|
@ -126,7 +126,7 @@ private:
|
|||||||
std::vector<std::string> StaticLinkExtensions;
|
std::vector<std::string> StaticLinkExtensions;
|
||||||
std::vector<std::string> SharedLinkExtensions;
|
std::vector<std::string> SharedLinkExtensions;
|
||||||
std::vector<std::string> LinkExtensions;
|
std::vector<std::string> LinkExtensions;
|
||||||
std::set<cmStdString> LinkPrefixes;
|
std::set<std::string> LinkPrefixes;
|
||||||
cmsys::RegularExpression ExtractStaticLibraryName;
|
cmsys::RegularExpression ExtractStaticLibraryName;
|
||||||
cmsys::RegularExpression ExtractSharedLibraryName;
|
cmsys::RegularExpression ExtractSharedLibraryName;
|
||||||
cmsys::RegularExpression ExtractAnyLibraryName;
|
cmsys::RegularExpression ExtractAnyLibraryName;
|
||||||
@ -153,7 +153,7 @@ private:
|
|||||||
// Framework info.
|
// Framework info.
|
||||||
void ComputeFrameworkInfo();
|
void ComputeFrameworkInfo();
|
||||||
void AddFrameworkPath(std::string const& p);
|
void AddFrameworkPath(std::string const& p);
|
||||||
std::set<cmStdString> FrameworkPathsEmmitted;
|
std::set<std::string> FrameworkPathsEmmitted;
|
||||||
cmsys::RegularExpression SplitFramework;
|
cmsys::RegularExpression SplitFramework;
|
||||||
|
|
||||||
// Linker search path computation.
|
// Linker search path computation.
|
||||||
@ -165,14 +165,14 @@ private:
|
|||||||
void LoadImplicitLinkInfo();
|
void LoadImplicitLinkInfo();
|
||||||
void AddImplicitLinkInfo();
|
void AddImplicitLinkInfo();
|
||||||
void AddImplicitLinkInfo(std::string const& lang);
|
void AddImplicitLinkInfo(std::string const& lang);
|
||||||
std::set<cmStdString> ImplicitLinkDirs;
|
std::set<std::string> ImplicitLinkDirs;
|
||||||
std::set<cmStdString> ImplicitLinkLibs;
|
std::set<std::string> ImplicitLinkLibs;
|
||||||
|
|
||||||
// Additional paths configured by the runtime linker
|
// Additional paths configured by the runtime linker
|
||||||
std::vector<std::string> RuntimeLinkDirs;
|
std::vector<std::string> RuntimeLinkDirs;
|
||||||
|
|
||||||
// Linker search path compatibility mode.
|
// Linker search path compatibility mode.
|
||||||
std::set<cmStdString> OldLinkDirMask;
|
std::set<std::string> OldLinkDirMask;
|
||||||
std::vector<std::string> OldLinkDirItems;
|
std::vector<std::string> OldLinkDirItems;
|
||||||
std::vector<std::string> OldUserFlagItems;
|
std::vector<std::string> OldUserFlagItems;
|
||||||
bool OldLinkDirMode;
|
bool OldLinkDirMode;
|
||||||
|
@ -211,7 +211,7 @@ void cmComputeTargetDepends::CollectTargetDepends(int depender_index)
|
|||||||
// dependencies in all targets, because the generated build-systems can't
|
// dependencies in all targets, because the generated build-systems can't
|
||||||
// deal with config-specific dependencies.
|
// deal with config-specific dependencies.
|
||||||
{
|
{
|
||||||
std::set<cmStdString> emitted;
|
std::set<std::string> emitted;
|
||||||
{
|
{
|
||||||
std::vector<std::string> tlibs;
|
std::vector<std::string> tlibs;
|
||||||
depender->GetDirectLinkLibraries(0, tlibs, depender);
|
depender->GetDirectLinkLibraries(0, tlibs, depender);
|
||||||
@ -255,11 +255,11 @@ void cmComputeTargetDepends::CollectTargetDepends(int depender_index)
|
|||||||
|
|
||||||
// Loop over all utility dependencies.
|
// Loop over all utility dependencies.
|
||||||
{
|
{
|
||||||
std::set<cmStdString> const& tutils = depender->GetUtilities();
|
std::set<std::string> const& tutils = depender->GetUtilities();
|
||||||
std::set<cmStdString> emitted;
|
std::set<std::string> emitted;
|
||||||
// A target should not depend on itself.
|
// A target should not depend on itself.
|
||||||
emitted.insert(depender->GetName());
|
emitted.insert(depender->GetName());
|
||||||
for(std::set<cmStdString>::const_iterator util = tutils.begin();
|
for(std::set<std::string>::const_iterator util = tutils.begin();
|
||||||
util != tutils.end(); ++util)
|
util != tutils.end(); ++util)
|
||||||
{
|
{
|
||||||
// Don't emit the same utility twice for this target.
|
// Don't emit the same utility twice for this target.
|
||||||
@ -275,7 +275,7 @@ void cmComputeTargetDepends::CollectTargetDepends(int depender_index)
|
|||||||
void cmComputeTargetDepends::AddInterfaceDepends(int depender_index,
|
void cmComputeTargetDepends::AddInterfaceDepends(int depender_index,
|
||||||
cmTarget const* dependee,
|
cmTarget const* dependee,
|
||||||
const char *config,
|
const char *config,
|
||||||
std::set<cmStdString> &emitted)
|
std::set<std::string> &emitted)
|
||||||
{
|
{
|
||||||
cmTarget const* depender = this->Targets[depender_index];
|
cmTarget const* depender = this->Targets[depender_index];
|
||||||
if(cmTarget::LinkInterface const* iface =
|
if(cmTarget::LinkInterface const* iface =
|
||||||
@ -300,7 +300,7 @@ void cmComputeTargetDepends::AddInterfaceDepends(int depender_index,
|
|||||||
void cmComputeTargetDepends::AddInterfaceDepends(int depender_index,
|
void cmComputeTargetDepends::AddInterfaceDepends(int depender_index,
|
||||||
const std::string& dependee_name,
|
const std::string& dependee_name,
|
||||||
bool linking,
|
bool linking,
|
||||||
std::set<cmStdString> &emitted)
|
std::set<std::string> &emitted)
|
||||||
{
|
{
|
||||||
cmTarget const* depender = this->Targets[depender_index];
|
cmTarget const* depender = this->Targets[depender_index];
|
||||||
cmTarget const* dependee =
|
cmTarget const* dependee =
|
||||||
@ -406,8 +406,8 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index,
|
|||||||
if(dependee->IsImported())
|
if(dependee->IsImported())
|
||||||
{
|
{
|
||||||
// Skip imported targets but follow their utility dependencies.
|
// Skip imported targets but follow their utility dependencies.
|
||||||
std::set<cmStdString> const& utils = dependee->GetUtilities();
|
std::set<std::string> const& utils = dependee->GetUtilities();
|
||||||
for(std::set<cmStdString>::const_iterator i = utils.begin();
|
for(std::set<std::string>::const_iterator i = utils.begin();
|
||||||
i != utils.end(); ++i)
|
i != utils.end(); ++i)
|
||||||
{
|
{
|
||||||
if(cmTarget const* transitive_dependee =
|
if(cmTarget const* transitive_dependee =
|
||||||
|
@ -53,10 +53,10 @@ private:
|
|||||||
bool ComputeFinalDepends(cmComputeComponentGraph const& ccg);
|
bool ComputeFinalDepends(cmComputeComponentGraph const& ccg);
|
||||||
void AddInterfaceDepends(int depender_index,
|
void AddInterfaceDepends(int depender_index,
|
||||||
const std::string& dependee_name,
|
const std::string& dependee_name,
|
||||||
bool linking, std::set<cmStdString> &emitted);
|
bool linking, std::set<std::string> &emitted);
|
||||||
void AddInterfaceDepends(int depender_index, cmTarget const* dependee,
|
void AddInterfaceDepends(int depender_index, cmTarget const* dependee,
|
||||||
const char *config,
|
const char *config,
|
||||||
std::set<cmStdString> &emitted);
|
std::set<std::string> &emitted);
|
||||||
cmGlobalGenerator* GlobalGenerator;
|
cmGlobalGenerator* GlobalGenerator;
|
||||||
bool DebugMode;
|
bool DebugMode;
|
||||||
bool NoCycles;
|
bool NoCycles;
|
||||||
|
@ -566,7 +566,7 @@ void cmCoreTryCompile::CleanupFiles(const char* binDir)
|
|||||||
cmsys::Directory dir;
|
cmsys::Directory dir;
|
||||||
dir.Load(binDir);
|
dir.Load(binDir);
|
||||||
size_t fileNum;
|
size_t fileNum;
|
||||||
std::set<cmStdString> deletedFiles;
|
std::set<std::string> deletedFiles;
|
||||||
for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum)
|
for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum)
|
||||||
{
|
{
|
||||||
if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") &&
|
if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") &&
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
/** Backtrace of the command that created this custom command. */
|
/** Backtrace of the command that created this custom command. */
|
||||||
cmListFileBacktrace const& GetBacktrace() const;
|
cmListFileBacktrace const& GetBacktrace() const;
|
||||||
|
|
||||||
typedef std::pair<cmStdString, cmStdString> ImplicitDependsPair;
|
typedef std::pair<std::string, std::string> ImplicitDependsPair;
|
||||||
class ImplicitDependsList: public std::vector<ImplicitDependsPair> {};
|
class ImplicitDependsList: public std::vector<ImplicitDependsPair> {};
|
||||||
void SetImplicitDepends(ImplicitDependsList const&);
|
void SetImplicitDepends(ImplicitDependsList const&);
|
||||||
void AppendImplicitDepends(ImplicitDependsList const&);
|
void AppendImplicitDepends(ImplicitDependsList const&);
|
||||||
|
@ -85,9 +85,9 @@ const char* cmDefinitions::Set(const std::string& key, const char* value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
std::set<cmStdString> cmDefinitions::LocalKeys() const
|
std::set<std::string> cmDefinitions::LocalKeys() const
|
||||||
{
|
{
|
||||||
std::set<cmStdString> keys;
|
std::set<std::string> keys;
|
||||||
// Consider local definitions.
|
// Consider local definitions.
|
||||||
for(MapType::const_iterator mi = this->Map.begin();
|
for(MapType::const_iterator mi = this->Map.begin();
|
||||||
mi != this->Map.end(); ++mi)
|
mi != this->Map.end(); ++mi)
|
||||||
@ -110,12 +110,12 @@ cmDefinitions cmDefinitions::Closure() const
|
|||||||
cmDefinitions::cmDefinitions(ClosureTag const&, cmDefinitions const* root):
|
cmDefinitions::cmDefinitions(ClosureTag const&, cmDefinitions const* root):
|
||||||
Up(0)
|
Up(0)
|
||||||
{
|
{
|
||||||
std::set<cmStdString> undefined;
|
std::set<std::string> undefined;
|
||||||
this->ClosureImpl(undefined, root);
|
this->ClosureImpl(undefined, root);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmDefinitions::ClosureImpl(std::set<cmStdString>& undefined,
|
void cmDefinitions::ClosureImpl(std::set<std::string>& undefined,
|
||||||
cmDefinitions const* defs)
|
cmDefinitions const* defs)
|
||||||
{
|
{
|
||||||
// Consider local definitions.
|
// Consider local definitions.
|
||||||
@ -145,17 +145,17 @@ void cmDefinitions::ClosureImpl(std::set<cmStdString>& undefined,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
std::set<cmStdString> cmDefinitions::ClosureKeys() const
|
std::set<std::string> cmDefinitions::ClosureKeys() const
|
||||||
{
|
{
|
||||||
std::set<cmStdString> defined;
|
std::set<std::string> defined;
|
||||||
std::set<cmStdString> undefined;
|
std::set<std::string> undefined;
|
||||||
this->ClosureKeys(defined, undefined);
|
this->ClosureKeys(defined, undefined);
|
||||||
return defined;
|
return defined;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmDefinitions::ClosureKeys(std::set<cmStdString>& defined,
|
void cmDefinitions::ClosureKeys(std::set<std::string>& defined,
|
||||||
std::set<cmStdString>& undefined) const
|
std::set<std::string>& undefined) const
|
||||||
{
|
{
|
||||||
// Consider local definitions.
|
// Consider local definitions.
|
||||||
for(MapType::const_iterator mi = this->Map.begin();
|
for(MapType::const_iterator mi = this->Map.begin();
|
||||||
@ -165,7 +165,7 @@ void cmDefinitions::ClosureKeys(std::set<cmStdString>& defined,
|
|||||||
if(defined.find(mi->first) == defined.end() &&
|
if(defined.find(mi->first) == defined.end() &&
|
||||||
undefined.find(mi->first) == undefined.end())
|
undefined.find(mi->first) == undefined.end())
|
||||||
{
|
{
|
||||||
std::set<cmStdString>& m = mi->second.Exists? defined : undefined;
|
std::set<std::string>& m = mi->second.Exists? defined : undefined;
|
||||||
m.insert(mi->first);
|
m.insert(mi->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,22 +41,25 @@ public:
|
|||||||
const char* Set(const std::string& key, const char* value);
|
const char* Set(const std::string& key, const char* value);
|
||||||
|
|
||||||
/** Get the set of all local keys. */
|
/** Get the set of all local keys. */
|
||||||
std::set<cmStdString> LocalKeys() const;
|
std::set<std::string> LocalKeys() const;
|
||||||
|
|
||||||
/** Compute the closure of all defined keys with values.
|
/** Compute the closure of all defined keys with values.
|
||||||
This flattens the scope. The result has no parent. */
|
This flattens the scope. The result has no parent. */
|
||||||
cmDefinitions Closure() const;
|
cmDefinitions Closure() const;
|
||||||
|
|
||||||
/** Compute the set of all defined keys. */
|
/** Compute the set of all defined keys. */
|
||||||
std::set<cmStdString> ClosureKeys() const;
|
std::set<std::string> ClosureKeys() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// String with existence boolean.
|
// String with existence boolean.
|
||||||
struct Def: public cmStdString
|
struct Def: public std::string
|
||||||
{
|
{
|
||||||
Def(): cmStdString(), Exists(false) {}
|
private:
|
||||||
Def(const char* v): cmStdString(v?v:""), Exists(v?true:false) {}
|
typedef std::string std_string;
|
||||||
Def(Def const& d): cmStdString(d), Exists(d.Exists) {}
|
public:
|
||||||
|
Def(): std_string(), Exists(false) {}
|
||||||
|
Def(const char* v): std_string(v?v:""), Exists(v?true:false) {}
|
||||||
|
Def(Def const& d): std_string(d), Exists(d.Exists) {}
|
||||||
bool Exists;
|
bool Exists;
|
||||||
};
|
};
|
||||||
static Def NoDef;
|
static Def NoDef;
|
||||||
@ -65,7 +68,7 @@ private:
|
|||||||
cmDefinitions* Up;
|
cmDefinitions* Up;
|
||||||
|
|
||||||
// Local definitions, set or unset.
|
// Local definitions, set or unset.
|
||||||
typedef std::map<cmStdString, Def> MapType;
|
typedef std::map<std::string, Def> MapType;
|
||||||
MapType Map;
|
MapType Map;
|
||||||
|
|
||||||
// Internal query and update methods.
|
// Internal query and update methods.
|
||||||
@ -75,12 +78,12 @@ private:
|
|||||||
// Implementation of Closure() method.
|
// Implementation of Closure() method.
|
||||||
struct ClosureTag {};
|
struct ClosureTag {};
|
||||||
cmDefinitions(ClosureTag const&, cmDefinitions const* root);
|
cmDefinitions(ClosureTag const&, cmDefinitions const* root);
|
||||||
void ClosureImpl(std::set<cmStdString>& undefined,
|
void ClosureImpl(std::set<std::string>& undefined,
|
||||||
cmDefinitions const* defs);
|
cmDefinitions const* defs);
|
||||||
|
|
||||||
// Implementation of ClosureKeys() method.
|
// Implementation of ClosureKeys() method.
|
||||||
void ClosureKeys(std::set<cmStdString>& defined,
|
void ClosureKeys(std::set<std::string>& defined,
|
||||||
std::set<cmStdString>& undefined) const;
|
std::set<std::string>& undefined) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -91,7 +91,7 @@ cmDependsC::~cmDependsC()
|
|||||||
{
|
{
|
||||||
this->WriteCacheFile();
|
this->WriteCacheFile();
|
||||||
|
|
||||||
for (std::map<cmStdString, cmIncludeLines*>::iterator it=
|
for (std::map<std::string, cmIncludeLines*>::iterator it=
|
||||||
this->FileCache.begin(); it!=this->FileCache.end(); ++it)
|
this->FileCache.begin(); it!=this->FileCache.end(); ++it)
|
||||||
{
|
{
|
||||||
delete it->second;
|
delete it->second;
|
||||||
@ -116,7 +116,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<cmStdString> dependencies;
|
std::set<std::string> dependencies;
|
||||||
bool haveDeps = false;
|
bool haveDeps = false;
|
||||||
|
|
||||||
if (this->ValidDeps != 0)
|
if (this->ValidDeps != 0)
|
||||||
@ -149,7 +149,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
|||||||
this->Encountered.insert(*srcIt);
|
this->Encountered.insert(*srcIt);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<cmStdString> scanned;
|
std::set<std::string> scanned;
|
||||||
|
|
||||||
// Use reserve to allocate enough memory for tempPathStr
|
// Use reserve to allocate enough memory for tempPathStr
|
||||||
// so that during the loops no memory is allocated or freed
|
// so that during the loops no memory is allocated or freed
|
||||||
@ -182,7 +182,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmStdString>::iterator
|
std::map<std::string, std::string>::iterator
|
||||||
headerLocationIt=this->HeaderLocationCache.find(current.FileName);
|
headerLocationIt=this->HeaderLocationCache.find(current.FileName);
|
||||||
if (headerLocationIt!=this->HeaderLocationCache.end())
|
if (headerLocationIt!=this->HeaderLocationCache.end())
|
||||||
{
|
{
|
||||||
@ -224,7 +224,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
|||||||
scanned.insert(fullName);
|
scanned.insert(fullName);
|
||||||
|
|
||||||
// Check whether this file is already in the cache
|
// Check whether this file is already in the cache
|
||||||
std::map<cmStdString, cmIncludeLines*>::iterator fileIt=
|
std::map<std::string, cmIncludeLines*>::iterator fileIt=
|
||||||
this->FileCache.find(fullName);
|
this->FileCache.find(fullName);
|
||||||
if (fileIt!=this->FileCache.end())
|
if (fileIt!=this->FileCache.end())
|
||||||
{
|
{
|
||||||
@ -270,7 +270,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
|||||||
// convert the dependencies to paths relative to the home output
|
// convert the dependencies to paths relative to the home output
|
||||||
// directory. We must do the same here.
|
// directory. We must do the same here.
|
||||||
internalDepends << obj << std::endl;
|
internalDepends << obj << std::endl;
|
||||||
for(std::set<cmStdString>::const_iterator i=dependencies.begin();
|
for(std::set<std::string>::const_iterator i=dependencies.begin();
|
||||||
i != dependencies.end(); ++i)
|
i != dependencies.end(); ++i)
|
||||||
{
|
{
|
||||||
makeDepends << obj << ": " <<
|
makeDepends << obj << ": " <<
|
||||||
@ -392,7 +392,7 @@ void cmDependsC::WriteCacheFile() const
|
|||||||
cacheOut << this->IncludeRegexComplainString << "\n\n";
|
cacheOut << this->IncludeRegexComplainString << "\n\n";
|
||||||
cacheOut << this->IncludeRegexTransformString << "\n\n";
|
cacheOut << this->IncludeRegexTransformString << "\n\n";
|
||||||
|
|
||||||
for (std::map<cmStdString, cmIncludeLines*>::const_iterator fileIt=
|
for (std::map<std::string, cmIncludeLines*>::const_iterator fileIt=
|
||||||
this->FileCache.begin();
|
this->FileCache.begin();
|
||||||
fileIt!=this->FileCache.end(); ++fileIt)
|
fileIt!=this->FileCache.end(); ++fileIt)
|
||||||
{
|
{
|
||||||
@ -421,7 +421,7 @@ void cmDependsC::WriteCacheFile() const
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmDependsC::Scan(std::istream& is, const char* directory,
|
void cmDependsC::Scan(std::istream& is, const char* directory,
|
||||||
const cmStdString& fullName)
|
const std::string& fullName)
|
||||||
{
|
{
|
||||||
cmIncludeLines* newCacheEntry=new cmIncludeLines;
|
cmIncludeLines* newCacheEntry=new cmIncludeLines;
|
||||||
newCacheEntry->Used=true;
|
newCacheEntry->Used=true;
|
||||||
|
@ -41,7 +41,7 @@ protected:
|
|||||||
|
|
||||||
// Method to scan a single file.
|
// Method to scan a single file.
|
||||||
void Scan(std::istream& is, const char* directory,
|
void Scan(std::istream& is, const char* directory,
|
||||||
const cmStdString& fullName);
|
const std::string& fullName);
|
||||||
|
|
||||||
// Regular expression to identify C preprocessor include directives.
|
// Regular expression to identify C preprocessor include directives.
|
||||||
cmsys::RegularExpression IncludeRegexLine;
|
cmsys::RegularExpression IncludeRegexLine;
|
||||||
@ -57,7 +57,7 @@ protected:
|
|||||||
// Regex to transform #include lines.
|
// Regex to transform #include lines.
|
||||||
std::string IncludeRegexTransformString;
|
std::string IncludeRegexTransformString;
|
||||||
cmsys::RegularExpression IncludeRegexTransform;
|
cmsys::RegularExpression IncludeRegexTransform;
|
||||||
typedef std::map<cmStdString, cmStdString> TransformRulesType;
|
typedef std::map<std::string, std::string> TransformRulesType;
|
||||||
TransformRulesType TransformRules;
|
TransformRulesType TransformRules;
|
||||||
void SetupTransforms();
|
void SetupTransforms();
|
||||||
void ParseTransform(std::string const& xform);
|
void ParseTransform(std::string const& xform);
|
||||||
@ -67,8 +67,8 @@ public:
|
|||||||
// Data structures for dependency graph walk.
|
// Data structures for dependency graph walk.
|
||||||
struct UnscannedEntry
|
struct UnscannedEntry
|
||||||
{
|
{
|
||||||
cmStdString FileName;
|
std::string FileName;
|
||||||
cmStdString QuotedLocation;
|
std::string QuotedLocation;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cmIncludeLines
|
struct cmIncludeLines
|
||||||
@ -79,13 +79,13 @@ public:
|
|||||||
};
|
};
|
||||||
protected:
|
protected:
|
||||||
const std::map<std::string, DependencyVector>* ValidDeps;
|
const std::map<std::string, DependencyVector>* ValidDeps;
|
||||||
std::set<cmStdString> Encountered;
|
std::set<std::string> Encountered;
|
||||||
std::queue<UnscannedEntry> Unscanned;
|
std::queue<UnscannedEntry> Unscanned;
|
||||||
|
|
||||||
std::map<cmStdString, cmIncludeLines *> FileCache;
|
std::map<std::string, cmIncludeLines *> FileCache;
|
||||||
std::map<cmStdString, cmStdString> HeaderLocationCache;
|
std::map<std::string, std::string> HeaderLocationCache;
|
||||||
|
|
||||||
cmStdString CacheFileName;
|
std::string CacheFileName;
|
||||||
|
|
||||||
void WriteCacheFile() const;
|
void WriteCacheFile() const;
|
||||||
void ReadCacheFile();
|
void ReadCacheFile();
|
||||||
|
@ -34,11 +34,11 @@ public:
|
|||||||
std::string Source;
|
std::string Source;
|
||||||
|
|
||||||
// Set of provided and required modules.
|
// Set of provided and required modules.
|
||||||
std::set<cmStdString> Provides;
|
std::set<std::string> Provides;
|
||||||
std::set<cmStdString> Requires;
|
std::set<std::string> Requires;
|
||||||
|
|
||||||
// Set of files included in the translation unit.
|
// Set of files included in the translation unit.
|
||||||
std::set<cmStdString> Includes;
|
std::set<std::string> Includes;
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
@ -98,24 +98,24 @@ class cmDependsFortranInternals
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// The set of modules provided by this target.
|
// The set of modules provided by this target.
|
||||||
std::set<cmStdString> TargetProvides;
|
std::set<std::string> TargetProvides;
|
||||||
|
|
||||||
// Map modules required by this target to locations.
|
// Map modules required by this target to locations.
|
||||||
typedef std::map<cmStdString, cmStdString> TargetRequiresMap;
|
typedef std::map<std::string, std::string> TargetRequiresMap;
|
||||||
TargetRequiresMap TargetRequires;
|
TargetRequiresMap TargetRequires;
|
||||||
|
|
||||||
// Information about each object file.
|
// Information about each object file.
|
||||||
typedef std::map<cmStdString, cmDependsFortranSourceInfo> ObjectInfoMap;
|
typedef std::map<std::string, cmDependsFortranSourceInfo> ObjectInfoMap;
|
||||||
ObjectInfoMap ObjectInfo;
|
ObjectInfoMap ObjectInfo;
|
||||||
|
|
||||||
cmDependsFortranSourceInfo& CreateObjectInfo(const char* obj,
|
cmDependsFortranSourceInfo& CreateObjectInfo(const char* obj,
|
||||||
const char* src)
|
const char* src)
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmDependsFortranSourceInfo>::iterator i =
|
std::map<std::string, cmDependsFortranSourceInfo>::iterator i =
|
||||||
this->ObjectInfo.find(obj);
|
this->ObjectInfo.find(obj);
|
||||||
if(i == this->ObjectInfo.end())
|
if(i == this->ObjectInfo.end())
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmDependsFortranSourceInfo>::value_type
|
std::map<std::string, cmDependsFortranSourceInfo>::value_type
|
||||||
entry(obj, cmDependsFortranSourceInfo());
|
entry(obj, cmDependsFortranSourceInfo());
|
||||||
i = this->ObjectInfo.insert(entry).first;
|
i = this->ObjectInfo.insert(entry).first;
|
||||||
i->second.Source = src;
|
i->second.Source = src;
|
||||||
@ -260,8 +260,8 @@ bool cmDependsFortran::Finalize(std::ostream& makeDepends,
|
|||||||
cmGeneratedFileStream fiStream(fiName.c_str());
|
cmGeneratedFileStream fiStream(fiName.c_str());
|
||||||
fiStream << "# The fortran modules provided by this target.\n";
|
fiStream << "# The fortran modules provided by this target.\n";
|
||||||
fiStream << "provides\n";
|
fiStream << "provides\n";
|
||||||
std::set<cmStdString> const& provides = this->Internal->TargetProvides;
|
std::set<std::string> const& provides = this->Internal->TargetProvides;
|
||||||
for(std::set<cmStdString>::const_iterator i = provides.begin();
|
for(std::set<std::string>::const_iterator i = provides.begin();
|
||||||
i != provides.end(); ++i)
|
i != provides.end(); ++i)
|
||||||
{
|
{
|
||||||
fiStream << " " << *i << "\n";
|
fiStream << " " << *i << "\n";
|
||||||
@ -275,7 +275,7 @@ bool cmDependsFortran::Finalize(std::ostream& makeDepends,
|
|||||||
cmGeneratedFileStream fcStream(fcName.c_str());
|
cmGeneratedFileStream fcStream(fcName.c_str());
|
||||||
fcStream << "# Remove fortran modules provided by this target.\n";
|
fcStream << "# Remove fortran modules provided by this target.\n";
|
||||||
fcStream << "FILE(REMOVE";
|
fcStream << "FILE(REMOVE";
|
||||||
for(std::set<cmStdString>::const_iterator i = provides.begin();
|
for(std::set<std::string>::const_iterator i = provides.begin();
|
||||||
i != provides.end(); ++i)
|
i != provides.end(); ++i)
|
||||||
{
|
{
|
||||||
std::string mod_upper = mod_dir;
|
std::string mod_upper = mod_dir;
|
||||||
@ -319,14 +319,14 @@ void cmDependsFortran::LocateModules()
|
|||||||
infoI != objInfo.end(); ++infoI)
|
infoI != objInfo.end(); ++infoI)
|
||||||
{
|
{
|
||||||
cmDependsFortranSourceInfo const& info = infoI->second;
|
cmDependsFortranSourceInfo const& info = infoI->second;
|
||||||
for(std::set<cmStdString>::const_iterator i = info.Provides.begin();
|
for(std::set<std::string>::const_iterator i = info.Provides.begin();
|
||||||
i != info.Provides.end(); ++i)
|
i != info.Provides.end(); ++i)
|
||||||
{
|
{
|
||||||
// Include this module in the set provided by this target.
|
// Include this module in the set provided by this target.
|
||||||
this->Internal->TargetProvides.insert(*i);
|
this->Internal->TargetProvides.insert(*i);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(std::set<cmStdString>::const_iterator i = info.Requires.begin();
|
for(std::set<std::string>::const_iterator i = info.Requires.begin();
|
||||||
i != info.Requires.end(); ++i)
|
i != info.Requires.end(); ++i)
|
||||||
{
|
{
|
||||||
// Include this module in the set required by this target.
|
// Include this module in the set required by this target.
|
||||||
@ -368,8 +368,8 @@ void cmDependsFortran::LocateModules()
|
|||||||
void cmDependsFortran::MatchLocalModules()
|
void cmDependsFortran::MatchLocalModules()
|
||||||
{
|
{
|
||||||
const char* stampDir = this->TargetDirectory.c_str();
|
const char* stampDir = this->TargetDirectory.c_str();
|
||||||
std::set<cmStdString> const& provides = this->Internal->TargetProvides;
|
std::set<std::string> const& provides = this->Internal->TargetProvides;
|
||||||
for(std::set<cmStdString>::const_iterator i = provides.begin();
|
for(std::set<std::string>::const_iterator i = provides.begin();
|
||||||
i != provides.end(); ++i)
|
i != provides.end(); ++i)
|
||||||
{
|
{
|
||||||
this->ConsiderModule(i->c_str(), stampDir);
|
this->ConsiderModule(i->c_str(), stampDir);
|
||||||
@ -445,7 +445,7 @@ cmDependsFortran
|
|||||||
// Write the include dependencies to the output stream.
|
// Write the include dependencies to the output stream.
|
||||||
internalDepends << obj << std::endl;
|
internalDepends << obj << std::endl;
|
||||||
internalDepends << " " << src << std::endl;
|
internalDepends << " " << src << std::endl;
|
||||||
for(std::set<cmStdString>::const_iterator i = info.Includes.begin();
|
for(std::set<std::string>::const_iterator i = info.Includes.begin();
|
||||||
i != info.Includes.end(); ++i)
|
i != info.Includes.end(); ++i)
|
||||||
{
|
{
|
||||||
makeDepends << obj << ": " <<
|
makeDepends << obj << ": " <<
|
||||||
@ -458,11 +458,11 @@ cmDependsFortran
|
|||||||
makeDepends << std::endl;
|
makeDepends << std::endl;
|
||||||
|
|
||||||
// Write module requirements to the output stream.
|
// Write module requirements to the output stream.
|
||||||
for(std::set<cmStdString>::const_iterator i = info.Requires.begin();
|
for(std::set<std::string>::const_iterator i = info.Requires.begin();
|
||||||
i != info.Requires.end(); ++i)
|
i != info.Requires.end(); ++i)
|
||||||
{
|
{
|
||||||
// Require only modules not provided in the same source.
|
// Require only modules not provided in the same source.
|
||||||
if(std::set<cmStdString>::const_iterator(info.Provides.find(*i)) !=
|
if(std::set<std::string>::const_iterator(info.Provides.find(*i)) !=
|
||||||
info.Provides.end())
|
info.Provides.end())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
@ -519,7 +519,7 @@ cmDependsFortran
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write provided modules to the output stream.
|
// Write provided modules to the output stream.
|
||||||
for(std::set<cmStdString>::const_iterator i = info.Provides.begin();
|
for(std::set<std::string>::const_iterator i = info.Provides.begin();
|
||||||
i != info.Provides.end(); ++i)
|
i != info.Provides.end(); ++i)
|
||||||
{
|
{
|
||||||
std::string proxy = stamp_dir;
|
std::string proxy = stamp_dir;
|
||||||
@ -538,7 +538,7 @@ cmDependsFortran
|
|||||||
// Create a target to copy the module after the object file
|
// Create a target to copy the module after the object file
|
||||||
// changes.
|
// changes.
|
||||||
makeDepends << obj << ".provides.build:\n";
|
makeDepends << obj << ".provides.build:\n";
|
||||||
for(std::set<cmStdString>::const_iterator i = info.Provides.begin();
|
for(std::set<std::string>::const_iterator i = info.Provides.begin();
|
||||||
i != info.Provides.end(); ++i)
|
i != info.Provides.end(); ++i)
|
||||||
{
|
{
|
||||||
// Include this module in the set provided by this target.
|
// Include this module in the set provided by this target.
|
||||||
|
@ -36,10 +36,10 @@ cmDependsJavaParserHelper::~cmDependsJavaParserHelper()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cmDependsJavaParserHelper::CurrentClass
|
void cmDependsJavaParserHelper::CurrentClass
|
||||||
::AddFileNamesForPrinting(std::vector<cmStdString> *files,
|
::AddFileNamesForPrinting(std::vector<std::string> *files,
|
||||||
const char* prefix, const char* sep)
|
const char* prefix, const char* sep)
|
||||||
{
|
{
|
||||||
cmStdString rname = "";
|
std::string rname = "";
|
||||||
if ( prefix )
|
if ( prefix )
|
||||||
{
|
{
|
||||||
rname += prefix;
|
rname += prefix;
|
||||||
@ -76,7 +76,7 @@ void cmDependsJavaParserHelper::AddClassFound(const char* sclass)
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = this->ClassesFound.begin();
|
for ( it = this->ClassesFound.begin();
|
||||||
it != this->ClassesFound.end();
|
it != this->ClassesFound.end();
|
||||||
it ++ )
|
it ++ )
|
||||||
@ -91,7 +91,7 @@ void cmDependsJavaParserHelper::AddClassFound(const char* sclass)
|
|||||||
|
|
||||||
void cmDependsJavaParserHelper::AddPackagesImport(const char* sclass)
|
void cmDependsJavaParserHelper::AddPackagesImport(const char* sclass)
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = this->PackagesImport.begin();
|
for ( it = this->PackagesImport.begin();
|
||||||
it != this->PackagesImport.end();
|
it != this->PackagesImport.end();
|
||||||
it ++ )
|
it ++ )
|
||||||
@ -256,8 +256,8 @@ void cmDependsJavaParserHelper::PrintClasses()
|
|||||||
std::cerr << "Error when parsing. No classes on class stack" << std::endl;
|
std::cerr << "Error when parsing. No classes on class stack" << std::endl;
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> files = this->GetFilesProduced();
|
std::vector<std::string> files = this->GetFilesProduced();
|
||||||
std::vector<cmStdString>::iterator sit;
|
std::vector<std::string>::iterator sit;
|
||||||
for ( sit = files.begin();
|
for ( sit = files.begin();
|
||||||
sit != files.end();
|
sit != files.end();
|
||||||
++ sit )
|
++ sit )
|
||||||
@ -266,9 +266,9 @@ void cmDependsJavaParserHelper::PrintClasses()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<cmStdString> cmDependsJavaParserHelper::GetFilesProduced()
|
std::vector<std::string> cmDependsJavaParserHelper::GetFilesProduced()
|
||||||
{
|
{
|
||||||
std::vector<cmStdString> files;
|
std::vector<std::string> files;
|
||||||
CurrentClass* toplevel = &(*(this->ClassStack.begin()));
|
CurrentClass* toplevel = &(*(this->ClassStack.begin()));
|
||||||
std::vector<CurrentClass>::iterator it;
|
std::vector<CurrentClass>::iterator it;
|
||||||
for ( it = toplevel->NestedClasses->begin();
|
for ( it = toplevel->NestedClasses->begin();
|
||||||
@ -313,7 +313,7 @@ int cmDependsJavaParserHelper::ParseString(const char* str, int verb)
|
|||||||
std::cout << "Imports packages:";
|
std::cout << "Imports packages:";
|
||||||
if ( this->PackagesImport.size() > 0 )
|
if ( this->PackagesImport.size() > 0 )
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = this->PackagesImport.begin();
|
for ( it = this->PackagesImport.begin();
|
||||||
it != this->PackagesImport.end();
|
it != this->PackagesImport.end();
|
||||||
++ it )
|
++ it )
|
||||||
@ -325,7 +325,7 @@ int cmDependsJavaParserHelper::ParseString(const char* str, int verb)
|
|||||||
std::cout << "Depends on:";
|
std::cout << "Depends on:";
|
||||||
if ( this->ClassesFound.size() > 0 )
|
if ( this->ClassesFound.size() > 0 )
|
||||||
{
|
{
|
||||||
std::vector<cmStdString>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = this->ClassesFound.begin();
|
for ( it = this->ClassesFound.begin();
|
||||||
it != this->ClassesFound.end();
|
it != this->ClassesFound.end();
|
||||||
++ it )
|
++ it )
|
||||||
@ -419,8 +419,8 @@ int cmDependsJavaParserHelper::ParseFile(const char* file)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmStdString fullfile = "";
|
std::string fullfile = "";
|
||||||
cmStdString line;
|
std::string line;
|
||||||
while ( cmSystemTools::GetLineFromStream(ifs, line) )
|
while ( cmSystemTools::GetLineFromStream(ifs, line) )
|
||||||
{
|
{
|
||||||
fullfile += line + "\n";
|
fullfile += line + "\n";
|
||||||
|
@ -59,15 +59,15 @@ public:
|
|||||||
const char* GetCurrentCombine() { return this->CurrentCombine.c_str(); }
|
const char* GetCurrentCombine() { return this->CurrentCombine.c_str(); }
|
||||||
void UpdateCombine(const char* str1, const char* str2);
|
void UpdateCombine(const char* str1, const char* str2);
|
||||||
|
|
||||||
std::vector<cmStdString>& GetClassesFound() { return this->ClassesFound; }
|
std::vector<std::string>& GetClassesFound() { return this->ClassesFound; }
|
||||||
|
|
||||||
std::vector<cmStdString> GetFilesProduced();
|
std::vector<std::string> GetFilesProduced();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class CurrentClass
|
class CurrentClass
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmStdString Name;
|
std::string Name;
|
||||||
std::vector<CurrentClass>* NestedClasses;
|
std::vector<CurrentClass>* NestedClasses;
|
||||||
CurrentClass()
|
CurrentClass()
|
||||||
{
|
{
|
||||||
@ -93,16 +93,16 @@ private:
|
|||||||
{
|
{
|
||||||
(*this) = c;
|
(*this) = c;
|
||||||
}
|
}
|
||||||
void AddFileNamesForPrinting(std::vector<cmStdString> *files,
|
void AddFileNamesForPrinting(std::vector<std::string> *files,
|
||||||
const char* prefix, const char* sep);
|
const char* prefix, const char* sep);
|
||||||
};
|
};
|
||||||
cmStdString CurrentPackage;
|
std::string CurrentPackage;
|
||||||
cmStdString::size_type InputBufferPos;
|
std::string::size_type InputBufferPos;
|
||||||
cmStdString InputBuffer;
|
std::string InputBuffer;
|
||||||
std::vector<char> OutputBuffer;
|
std::vector<char> OutputBuffer;
|
||||||
std::vector<cmStdString> ClassesFound;
|
std::vector<std::string> ClassesFound;
|
||||||
std::vector<cmStdString> PackagesImport;
|
std::vector<std::string> PackagesImport;
|
||||||
cmStdString CurrentCombine;
|
std::string CurrentCombine;
|
||||||
|
|
||||||
std::vector<CurrentClass> ClassStack;
|
std::vector<CurrentClass> ClassStack;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ public:
|
|||||||
static cmDynamicLoaderCache* GetInstance();
|
static cmDynamicLoaderCache* GetInstance();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::map<cmStdString, cmsys::DynamicLoader::LibraryHandle> CacheMap;
|
std::map<std::string, cmsys::DynamicLoader::LibraryHandle> CacheMap;
|
||||||
static cmDynamicLoaderCache* Instance;
|
static cmDynamicLoaderCache* Instance;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ void cmDynamicLoaderCache::CacheFile(const char* path,
|
|||||||
bool cmDynamicLoaderCache::GetCacheFile(const char* path,
|
bool cmDynamicLoaderCache::GetCacheFile(const char* path,
|
||||||
cmsys::DynamicLoader::LibraryHandle& p)
|
cmsys::DynamicLoader::LibraryHandle& p)
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmsys::DynamicLoader::LibraryHandle>::iterator it
|
std::map<std::string, cmsys::DynamicLoader::LibraryHandle>::iterator it
|
||||||
= this->CacheMap.find(path);
|
= this->CacheMap.find(path);
|
||||||
if ( it != this->CacheMap.end() )
|
if ( it != this->CacheMap.end() )
|
||||||
{
|
{
|
||||||
@ -59,7 +59,7 @@ bool cmDynamicLoaderCache::GetCacheFile(const char* path,
|
|||||||
|
|
||||||
bool cmDynamicLoaderCache::FlushCache(const char* path)
|
bool cmDynamicLoaderCache::FlushCache(const char* path)
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmsys::DynamicLoader::LibraryHandle>::iterator it
|
std::map<std::string, cmsys::DynamicLoader::LibraryHandle>::iterator it
|
||||||
= this->CacheMap.find(path);
|
= this->CacheMap.find(path);
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
if ( it != this->CacheMap.end() )
|
if ( it != this->CacheMap.end() )
|
||||||
@ -73,7 +73,7 @@ bool cmDynamicLoaderCache::FlushCache(const char* path)
|
|||||||
|
|
||||||
void cmDynamicLoaderCache::FlushCache()
|
void cmDynamicLoaderCache::FlushCache()
|
||||||
{
|
{
|
||||||
for ( std::map<cmStdString,
|
for ( std::map<std::string,
|
||||||
cmsys::DynamicLoader::LibraryHandle>::iterator it
|
cmsys::DynamicLoader::LibraryHandle>::iterator it
|
||||||
= this->CacheMap.begin();
|
= this->CacheMap.begin();
|
||||||
it != this->CacheMap.end(); it++ )
|
it != this->CacheMap.end(); it++ )
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
bool GenerateImportFile();
|
bool GenerateImportFile();
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
typedef std::map<cmStdString, cmStdString> ImportPropertyMap;
|
typedef std::map<std::string, std::string> ImportPropertyMap;
|
||||||
|
|
||||||
// Generate per-configuration target information to the given output
|
// Generate per-configuration target information to the given output
|
||||||
// stream.
|
// stream.
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
/** Get the per-config file generated for each configuraiton. This
|
/** Get the per-config file generated for each configuraiton. This
|
||||||
maps from the configuration name to the file temporary location
|
maps from the configuration name to the file temporary location
|
||||||
for installation. */
|
for installation. */
|
||||||
std::map<cmStdString, cmStdString> const& GetConfigImportFiles()
|
std::map<std::string, std::string> const& GetConfigImportFiles()
|
||||||
{ return this->ConfigImportFiles; }
|
{ return this->ConfigImportFiles; }
|
||||||
|
|
||||||
/** Compute the globbing expression used to load per-config import
|
/** Compute the globbing expression used to load per-config import
|
||||||
@ -92,7 +92,7 @@ protected:
|
|||||||
std::string ImportPrefix;
|
std::string ImportPrefix;
|
||||||
|
|
||||||
// The import file generated for each configuration.
|
// The import file generated for each configuration.
|
||||||
std::map<cmStdString, cmStdString> ConfigImportFiles;
|
std::map<std::string, std::string> ConfigImportFiles;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -83,9 +83,9 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const
|
|||||||
cmake* cm = this->Makefile->GetCMakeInstance();
|
cmake* cm = this->Makefile->GetCMakeInstance();
|
||||||
cmGlobalGenerator* global = cm->GetGlobalGenerator();
|
cmGlobalGenerator* global = cm->GetGlobalGenerator();
|
||||||
const std::vector<cmLocalGenerator *>& locals = global->GetLocalGenerators();
|
const std::vector<cmLocalGenerator *>& locals = global->GetLocalGenerators();
|
||||||
std::map<cmStdString, cmStdString> libDepsOld;
|
std::map<std::string, std::string> libDepsOld;
|
||||||
std::map<cmStdString, cmStdString> libDepsNew;
|
std::map<std::string, std::string> libDepsNew;
|
||||||
std::map<cmStdString, cmStdString> libTypes;
|
std::map<std::string, std::string> libTypes;
|
||||||
for(std::vector<cmLocalGenerator *>::const_iterator i = locals.begin();
|
for(std::vector<cmLocalGenerator *>::const_iterator i = locals.begin();
|
||||||
i != locals.end(); ++i)
|
i != locals.end(); ++i)
|
||||||
{
|
{
|
||||||
@ -175,7 +175,7 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const
|
|||||||
fout << "# Generated by CMake " << cmVersion::GetCMakeVersion() << "\n\n";
|
fout << "# Generated by CMake " << cmVersion::GetCMakeVersion() << "\n\n";
|
||||||
fout << "if(" << vertest << ")\n";
|
fout << "if(" << vertest << ")\n";
|
||||||
fout << " # Information for CMake 2.6 and above.\n";
|
fout << " # Information for CMake 2.6 and above.\n";
|
||||||
for(std::map<cmStdString, cmStdString>::const_iterator
|
for(std::map<std::string, std::string>::const_iterator
|
||||||
i = libDepsNew.begin();
|
i = libDepsNew.begin();
|
||||||
i != libDepsNew.end(); ++i)
|
i != libDepsNew.end(); ++i)
|
||||||
{
|
{
|
||||||
@ -186,7 +186,7 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const
|
|||||||
}
|
}
|
||||||
fout << "else()\n";
|
fout << "else()\n";
|
||||||
fout << " # Information for CMake 2.4 and lower.\n";
|
fout << " # Information for CMake 2.4 and lower.\n";
|
||||||
for(std::map<cmStdString, cmStdString>::const_iterator
|
for(std::map<std::string, std::string>::const_iterator
|
||||||
i = libDepsOld.begin();
|
i = libDepsOld.begin();
|
||||||
i != libDepsOld.end(); ++i)
|
i != libDepsOld.end(); ++i)
|
||||||
{
|
{
|
||||||
@ -195,7 +195,7 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const
|
|||||||
fout << " set(\"" << i->first << "\" \"" << i->second << "\")\n";
|
fout << " set(\"" << i->first << "\" \"" << i->second << "\")\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(std::map<cmStdString, cmStdString>::const_iterator i = libTypes.begin();
|
for(std::map<std::string, std::string>::const_iterator i = libTypes.begin();
|
||||||
i != libTypes.end(); ++i)
|
i != libTypes.end(); ++i)
|
||||||
{
|
{
|
||||||
if(i->second != "general")
|
if(i->second != "general")
|
||||||
|
@ -49,8 +49,8 @@ public:
|
|||||||
const char* GetError() { return this->ErrorString.c_str(); }
|
const char* GetError() { return this->ErrorString.c_str(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmStdString::size_type InputBufferPos;
|
std::string::size_type InputBufferPos;
|
||||||
cmStdString InputBuffer;
|
std::string InputBuffer;
|
||||||
std::vector<char> OutputBuffer;
|
std::vector<char> OutputBuffer;
|
||||||
int CurrentLine;
|
int CurrentLine;
|
||||||
int Verbose;
|
int Verbose;
|
||||||
|
@ -61,7 +61,7 @@ cmExtraCodeBlocksGenerator::cmExtraCodeBlocksGenerator()
|
|||||||
void cmExtraCodeBlocksGenerator::Generate()
|
void cmExtraCodeBlocksGenerator::Generate()
|
||||||
{
|
{
|
||||||
// for each sub project in the project create a codeblocks project
|
// for each sub project in the project create a codeblocks project
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it!= this->GlobalGenerator->GetProjectMap().end();
|
it!= this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
@ -243,7 +243,7 @@ void cmExtraCodeBlocksGenerator
|
|||||||
Tree tree;
|
Tree tree;
|
||||||
|
|
||||||
// build tree of virtual folders
|
// build tree of virtual folders
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it != this->GlobalGenerator->GetProjectMap().end();
|
it != this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
|
@ -60,7 +60,7 @@ void cmExtraCodeLiteGenerator::Generate()
|
|||||||
|
|
||||||
// loop projects and locate the root project.
|
// loop projects and locate the root project.
|
||||||
// and extract the information for creating the worspace
|
// and extract the information for creating the worspace
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it!= this->GlobalGenerator->GetProjectMap().end();
|
it!= this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
@ -85,7 +85,7 @@ void cmExtraCodeLiteGenerator::Generate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// for each sub project in the workspace create a codelite project
|
// for each sub project in the workspace create a codelite project
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it!= this->GlobalGenerator->GetProjectMap().end();
|
it!= this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
|
@ -624,7 +624,7 @@ void cmExtraEclipseCDT4Generator::CreateLinksToSubprojects(
|
|||||||
this->AppendLinkedResource(fout, "[Subprojects]",
|
this->AppendLinkedResource(fout, "[Subprojects]",
|
||||||
"virtual:/virtual", VirtualFolder);
|
"virtual:/virtual", VirtualFolder);
|
||||||
|
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it != this->GlobalGenerator->GetProjectMap().end();
|
it != this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
|
@ -64,7 +64,7 @@ cmExtraSublimeTextGenerator::cmExtraSublimeTextGenerator()
|
|||||||
void cmExtraSublimeTextGenerator::Generate()
|
void cmExtraSublimeTextGenerator::Generate()
|
||||||
{
|
{
|
||||||
// for each sub project in the project create a sublime text 2 project
|
// for each sub project in the project create a sublime text 2 project
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it!= this->GlobalGenerator->GetProjectMap().end();
|
it!= this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
|
@ -43,13 +43,13 @@ private:
|
|||||||
class HashString
|
class HashString
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
size_t operator()(const cmStdString& s) const
|
size_t operator()(const std::string& s) const
|
||||||
{
|
{
|
||||||
return h(s.c_str());
|
return h(s.c_str());
|
||||||
}
|
}
|
||||||
cmsys::hash<const char*> h;
|
cmsys::hash<const char*> h;
|
||||||
};
|
};
|
||||||
typedef cmsys::hash_map<cmStdString,
|
typedef cmsys::hash_map<std::string,
|
||||||
cmFileTimeComparison_Type, HashString> FileStatsMap;
|
cmFileTimeComparison_Type, HashString> FileStatsMap;
|
||||||
FileStatsMap Files;
|
FileStatsMap Files;
|
||||||
#endif
|
#endif
|
||||||
|
@ -42,14 +42,14 @@ protected:
|
|||||||
bool CheckForVariableInCache();
|
bool CheckForVariableInCache();
|
||||||
|
|
||||||
// use by command during find
|
// use by command during find
|
||||||
cmStdString VariableDocumentation;
|
std::string VariableDocumentation;
|
||||||
cmStdString VariableName;
|
std::string VariableName;
|
||||||
std::vector<std::string> Names;
|
std::vector<std::string> Names;
|
||||||
bool NamesPerDir;
|
bool NamesPerDir;
|
||||||
bool NamesPerDirAllowed;
|
bool NamesPerDirAllowed;
|
||||||
|
|
||||||
// CMAKE_*_PATH CMAKE_SYSTEM_*_PATH FRAMEWORK|LIBRARY|INCLUDE|PROGRAM
|
// CMAKE_*_PATH CMAKE_SYSTEM_*_PATH FRAMEWORK|LIBRARY|INCLUDE|PROGRAM
|
||||||
cmStdString EnvironmentPath; // LIB,INCLUDE
|
std::string EnvironmentPath; // LIB,INCLUDE
|
||||||
|
|
||||||
bool AlreadyInCache;
|
bool AlreadyInCache;
|
||||||
bool AlreadyInCacheWithoutMetaInfo;
|
bool AlreadyInCacheWithoutMetaInfo;
|
||||||
|
@ -56,7 +56,7 @@ protected:
|
|||||||
/** Compute the current default bundle/framework search policy. */
|
/** Compute the current default bundle/framework search policy. */
|
||||||
void SelectDefaultMacMode();
|
void SelectDefaultMacMode();
|
||||||
|
|
||||||
cmStdString CMakePathName;
|
std::string CMakePathName;
|
||||||
RootPathMode FindRootPathMode;
|
RootPathMode FindRootPathMode;
|
||||||
|
|
||||||
bool CheckCommonArgument(std::string const& arg);
|
bool CheckCommonArgument(std::string const& arg);
|
||||||
@ -81,7 +81,7 @@ protected:
|
|||||||
std::vector<std::string> UserPaths;
|
std::vector<std::string> UserPaths;
|
||||||
std::vector<std::string> UserHints;
|
std::vector<std::string> UserHints;
|
||||||
std::vector<std::string> SearchPaths;
|
std::vector<std::string> SearchPaths;
|
||||||
std::set<cmStdString> SearchPathsEmitted;
|
std::set<std::string> SearchPathsEmitted;
|
||||||
|
|
||||||
bool SearchFrameworkFirst;
|
bool SearchFrameworkFirst;
|
||||||
bool SearchFrameworkOnly;
|
bool SearchFrameworkOnly;
|
||||||
|
@ -368,8 +368,8 @@ bool cmFindLibraryHelper::CheckDirectoryForName(std::string const& path,
|
|||||||
// Search for a file matching the library name regex.
|
// Search for a file matching the library name regex.
|
||||||
std::string dir = path;
|
std::string dir = path;
|
||||||
cmSystemTools::ConvertToUnixSlashes(dir);
|
cmSystemTools::ConvertToUnixSlashes(dir);
|
||||||
std::set<cmStdString> const& files = this->GG->GetDirectoryContent(dir);
|
std::set<std::string> const& files = this->GG->GetDirectoryContent(dir);
|
||||||
for(std::set<cmStdString>::const_iterator fi = files.begin();
|
for(std::set<std::string>::const_iterator fi = files.begin();
|
||||||
fi != files.end(); ++fi)
|
fi != files.end(); ++fi)
|
||||||
{
|
{
|
||||||
std::string const& origName = *fi;
|
std::string const& origName = *fi;
|
||||||
|
@ -553,7 +553,7 @@ void cmFindPackageCommand::AddFindDefinition(const std::string& var,
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmFindPackageCommand::RestoreFindDefinitions()
|
void cmFindPackageCommand::RestoreFindDefinitions()
|
||||||
{
|
{
|
||||||
for(std::map<cmStdString, OriginalDef>::iterator
|
for(std::map<std::string, OriginalDef>::iterator
|
||||||
i = this->OriginalDefs.begin(); i != this->OriginalDefs.end(); ++i)
|
i = this->OriginalDefs.begin(); i != this->OriginalDefs.end(); ++i)
|
||||||
{
|
{
|
||||||
OriginalDef const& od = i->second;
|
OriginalDef const& od = i->second;
|
||||||
|
@ -96,19 +96,19 @@ private:
|
|||||||
friend class cmFindPackageFileList;
|
friend class cmFindPackageFileList;
|
||||||
|
|
||||||
struct OriginalDef { bool exists; std::string value; };
|
struct OriginalDef { bool exists; std::string value; };
|
||||||
std::map<cmStdString, OriginalDef> OriginalDefs;
|
std::map<std::string, OriginalDef> OriginalDefs;
|
||||||
|
|
||||||
cmStdString Name;
|
std::string Name;
|
||||||
cmStdString Variable;
|
std::string Variable;
|
||||||
cmStdString Version;
|
std::string Version;
|
||||||
unsigned int VersionMajor;
|
unsigned int VersionMajor;
|
||||||
unsigned int VersionMinor;
|
unsigned int VersionMinor;
|
||||||
unsigned int VersionPatch;
|
unsigned int VersionPatch;
|
||||||
unsigned int VersionTweak;
|
unsigned int VersionTweak;
|
||||||
unsigned int VersionCount;
|
unsigned int VersionCount;
|
||||||
bool VersionExact;
|
bool VersionExact;
|
||||||
cmStdString FileFound;
|
std::string FileFound;
|
||||||
cmStdString VersionFound;
|
std::string VersionFound;
|
||||||
unsigned int VersionFoundMajor;
|
unsigned int VersionFoundMajor;
|
||||||
unsigned int VersionFoundMinor;
|
unsigned int VersionFoundMinor;
|
||||||
unsigned int VersionFoundPatch;
|
unsigned int VersionFoundPatch;
|
||||||
|
@ -89,9 +89,9 @@ std::string
|
|||||||
cmFindPathCommand::FindHeaderInFramework(std::string const& file,
|
cmFindPathCommand::FindHeaderInFramework(std::string const& file,
|
||||||
std::string const& dir)
|
std::string const& dir)
|
||||||
{
|
{
|
||||||
cmStdString fileName = file;
|
std::string fileName = file;
|
||||||
cmStdString frameWorkName;
|
std::string frameWorkName;
|
||||||
cmStdString::size_type pos = fileName.find("/");
|
std::string::size_type pos = fileName.find("/");
|
||||||
// if there is a / in the name try to find the header as a framework
|
// if there is a / in the name try to find the header as a framework
|
||||||
// For example bar/foo.h would look for:
|
// For example bar/foo.h would look for:
|
||||||
// bar.framework/Headers/foo.h
|
// bar.framework/Headers/foo.h
|
||||||
@ -128,7 +128,7 @@ cmFindPathCommand::FindHeaderInFramework(std::string const& file,
|
|||||||
}
|
}
|
||||||
// if it is not found yet or not a framework header, then do a glob search
|
// if it is not found yet or not a framework header, then do a glob search
|
||||||
// for all frameworks in the directory: dir/*.framework/Headers/<file>
|
// for all frameworks in the directory: dir/*.framework/Headers/<file>
|
||||||
cmStdString glob = dir;
|
std::string glob = dir;
|
||||||
glob += "*.framework/Headers/";
|
glob += "*.framework/Headers/";
|
||||||
glob += file;
|
glob += file;
|
||||||
cmsys::Glob globIt;
|
cmsys::Glob globIt;
|
||||||
@ -136,7 +136,7 @@ cmFindPathCommand::FindHeaderInFramework(std::string const& file,
|
|||||||
std::vector<std::string> files = globIt.GetFiles();
|
std::vector<std::string> files = globIt.GetFiles();
|
||||||
if(files.size())
|
if(files.size())
|
||||||
{
|
{
|
||||||
cmStdString fheader = cmSystemTools::CollapseFullPath(files[0].c_str());
|
std::string fheader = cmSystemTools::CollapseFullPath(files[0].c_str());
|
||||||
if(this->IncludeFileInPath)
|
if(this->IncludeFileInPath)
|
||||||
{
|
{
|
||||||
return fheader;
|
return fheader;
|
||||||
|
@ -97,7 +97,7 @@ const char *cmCompiledGeneratorExpression::Evaluate(
|
|||||||
{
|
{
|
||||||
this->Output += (*it)->Evaluate(&context, dagChecker);
|
this->Output += (*it)->Evaluate(&context, dagChecker);
|
||||||
|
|
||||||
for(std::set<cmStdString>::const_iterator
|
for(std::set<std::string>::const_iterator
|
||||||
p = context.SeenTargetProperties.begin();
|
p = context.SeenTargetProperties.begin();
|
||||||
p != context.SeenTargetProperties.end(); ++p)
|
p != context.SeenTargetProperties.end(); ++p)
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,7 @@ public:
|
|||||||
std::set<cmTarget*> const& GetTargets() const
|
std::set<cmTarget*> const& GetTargets() const
|
||||||
{ return this->DependTargets; }
|
{ return this->DependTargets; }
|
||||||
|
|
||||||
std::set<cmStdString> const& GetSeenTargetProperties() const
|
std::set<std::string> const& GetSeenTargetProperties() const
|
||||||
{ return this->SeenTargetProperties; }
|
{ return this->SeenTargetProperties; }
|
||||||
|
|
||||||
std::set<cmTarget const*> const& GetAllTargetsSeen() const
|
std::set<cmTarget const*> const& GetAllTargetsSeen() const
|
||||||
@ -130,7 +130,7 @@ private:
|
|||||||
|
|
||||||
mutable std::set<cmTarget*> DependTargets;
|
mutable std::set<cmTarget*> DependTargets;
|
||||||
mutable std::set<cmTarget const*> AllTargetsSeen;
|
mutable std::set<cmTarget const*> AllTargetsSeen;
|
||||||
mutable std::set<cmStdString> SeenTargetProperties;
|
mutable std::set<std::string> SeenTargetProperties;
|
||||||
mutable std::string Output;
|
mutable std::string Output;
|
||||||
mutable bool HadContextSensitiveCondition;
|
mutable bool HadContextSensitiveCondition;
|
||||||
};
|
};
|
||||||
|
@ -42,12 +42,12 @@ cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
|
|||||||
)
|
)
|
||||||
#undef TEST_TRANSITIVE_PROPERTY_METHOD
|
#undef TEST_TRANSITIVE_PROPERTY_METHOD
|
||||||
{
|
{
|
||||||
std::map<cmStdString, std::set<cmStdString> >::const_iterator it
|
std::map<std::string, std::set<std::string> >::const_iterator it
|
||||||
= top->Seen.find(target);
|
= top->Seen.find(target);
|
||||||
if (it != top->Seen.end())
|
if (it != top->Seen.end())
|
||||||
{
|
{
|
||||||
const std::set<cmStdString> &propSet = it->second;
|
const std::set<std::string> &propSet = it->second;
|
||||||
const std::set<cmStdString>::const_iterator i = propSet.find(property);
|
const std::set<std::string>::const_iterator i = propSet.find(property);
|
||||||
if (i != propSet.end())
|
if (i != propSet.end())
|
||||||
{
|
{
|
||||||
this->CheckResult = ALREADY_SEEN;
|
this->CheckResult = ALREADY_SEEN;
|
||||||
|
@ -77,7 +77,7 @@ private:
|
|||||||
const cmGeneratorExpressionDAGChecker * const Parent;
|
const cmGeneratorExpressionDAGChecker * const Parent;
|
||||||
const std::string Target;
|
const std::string Target;
|
||||||
const std::string Property;
|
const std::string Property;
|
||||||
std::map<cmStdString, std::set<cmStdString> > Seen;
|
std::map<std::string, std::set<std::string> > Seen;
|
||||||
const GeneratorExpressionContent * const Content;
|
const GeneratorExpressionContent * const Content;
|
||||||
const cmListFileBacktrace Backtrace;
|
const cmListFileBacktrace Backtrace;
|
||||||
Result CheckResult;
|
Result CheckResult;
|
||||||
|
@ -25,7 +25,7 @@ struct cmGeneratorExpressionContext
|
|||||||
cmListFileBacktrace Backtrace;
|
cmListFileBacktrace Backtrace;
|
||||||
std::set<cmTarget*> DependTargets;
|
std::set<cmTarget*> DependTargets;
|
||||||
std::set<cmTarget const*> AllTargets;
|
std::set<cmTarget const*> AllTargets;
|
||||||
std::set<cmStdString> SeenTargetProperties;
|
std::set<std::string> SeenTargetProperties;
|
||||||
cmMakefile *Makefile;
|
cmMakefile *Makefile;
|
||||||
const char *Config;
|
const char *Config;
|
||||||
cmTarget const* HeadTarget; // The target whose property is being evaluated.
|
cmTarget const* HeadTarget; // The target whose property is being evaluated.
|
||||||
|
@ -422,7 +422,7 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(const char *dir,
|
|||||||
= this->Target->GetPropertyAsBool("NO_SYSTEM_FROM_IMPORTED");
|
= this->Target->GetPropertyAsBool("NO_SYSTEM_FROM_IMPORTED");
|
||||||
|
|
||||||
std::vector<std::string> result;
|
std::vector<std::string> result;
|
||||||
for (std::set<cmStdString>::const_iterator
|
for (std::set<std::string>::const_iterator
|
||||||
it = this->Target->GetSystemIncludeDirectories().begin();
|
it = this->Target->GetSystemIncludeDirectories().begin();
|
||||||
it != this->Target->GetSystemIncludeDirectories().end(); ++it)
|
it != this->Target->GetSystemIncludeDirectories().end(); ++it)
|
||||||
{
|
{
|
||||||
@ -462,7 +462,7 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(const char *dir,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::set<cmStdString> unique;
|
std::set<std::string> unique;
|
||||||
for(std::vector<std::string>::iterator li = result.begin();
|
for(std::vector<std::string>::iterator li = result.begin();
|
||||||
li != result.end(); ++li)
|
li != result.end(); ++li)
|
||||||
{
|
{
|
||||||
@ -470,7 +470,7 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(const char *dir,
|
|||||||
unique.insert(*li);
|
unique.insert(*li);
|
||||||
}
|
}
|
||||||
result.clear();
|
result.clear();
|
||||||
for(std::set<cmStdString>::iterator li = unique.begin();
|
for(std::set<std::string>::iterator li = unique.begin();
|
||||||
li != unique.end(); ++li)
|
li != unique.end(); ++li)
|
||||||
{
|
{
|
||||||
result.push_back(*li);
|
result.push_back(*li);
|
||||||
@ -594,7 +594,7 @@ private:
|
|||||||
SourceEntry* CurrentEntry;
|
SourceEntry* CurrentEntry;
|
||||||
std::queue<cmSourceFile*> SourceQueue;
|
std::queue<cmSourceFile*> SourceQueue;
|
||||||
std::set<cmSourceFile*> SourcesQueued;
|
std::set<cmSourceFile*> SourcesQueued;
|
||||||
typedef std::map<cmStdString, cmSourceFile*> NameMapType;
|
typedef std::map<std::string, cmSourceFile*> NameMapType;
|
||||||
NameMapType NameMap;
|
NameMapType NameMap;
|
||||||
|
|
||||||
void QueueSource(cmSourceFile* sf);
|
void QueueSource(cmSourceFile* sf);
|
||||||
|
@ -49,10 +49,10 @@ bool cmGetCMakePropertyCommand
|
|||||||
}
|
}
|
||||||
else if ( args[1] == "COMPONENTS" )
|
else if ( args[1] == "COMPONENTS" )
|
||||||
{
|
{
|
||||||
const std::set<cmStdString>* components
|
const std::set<std::string>* components
|
||||||
= this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
= this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
||||||
->GetInstallComponents();
|
->GetInstallComponents();
|
||||||
std::set<cmStdString>::const_iterator compIt;
|
std::set<std::string>::const_iterator compIt;
|
||||||
output = "";
|
output = "";
|
||||||
for (compIt = components->begin(); compIt != components->end(); ++compIt)
|
for (compIt = components->begin(); compIt != components->end(); ++compIt)
|
||||||
{
|
{
|
||||||
|
@ -432,8 +432,8 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
|||||||
fpath += "/CMakeSystem.cmake";
|
fpath += "/CMakeSystem.cmake";
|
||||||
mf->ReadListFile(0,fpath.c_str());
|
mf->ReadListFile(0,fpath.c_str());
|
||||||
}
|
}
|
||||||
std::map<cmStdString, bool> needTestLanguage;
|
std::map<std::string, bool> needTestLanguage;
|
||||||
std::map<cmStdString, bool> needSetLanguageEnabledMaps;
|
std::map<std::string, bool> needSetLanguageEnabledMaps;
|
||||||
// foreach language
|
// foreach language
|
||||||
// load the CMakeDetermine(LANG)Compiler.cmake file to find
|
// load the CMakeDetermine(LANG)Compiler.cmake file to find
|
||||||
// the compiler
|
// the compiler
|
||||||
@ -823,7 +823,7 @@ cmGlobalGenerator::GetLanguageOutputExtension(cmSourceFile const& source) const
|
|||||||
const std::string& lang = source.GetLanguage();
|
const std::string& lang = source.GetLanguage();
|
||||||
if(!lang.empty())
|
if(!lang.empty())
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmStdString>::const_iterator it =
|
std::map<std::string, std::string>::const_iterator it =
|
||||||
this->LanguageToOutputExtension.find(lang);
|
this->LanguageToOutputExtension.find(lang);
|
||||||
|
|
||||||
if(it != this->LanguageToOutputExtension.end())
|
if(it != this->LanguageToOutputExtension.end())
|
||||||
@ -857,7 +857,7 @@ std::string cmGlobalGenerator::GetLanguageFromExtension(const char* ext) const
|
|||||||
{
|
{
|
||||||
++ext;
|
++ext;
|
||||||
}
|
}
|
||||||
std::map<cmStdString, cmStdString>::const_iterator it
|
std::map<std::string, std::string>::const_iterator it
|
||||||
= this->ExtensionToLanguage.find(ext);
|
= this->ExtensionToLanguage.find(ext);
|
||||||
if(it != this->ExtensionToLanguage.end())
|
if(it != this->ExtensionToLanguage.end())
|
||||||
{
|
{
|
||||||
@ -1011,7 +1011,7 @@ bool cmGlobalGenerator::IsDependedOn(const std::string& project,
|
|||||||
cmTarget const* targetIn)
|
cmTarget const* targetIn)
|
||||||
{
|
{
|
||||||
// Get all local gens for this project
|
// Get all local gens for this project
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator it =
|
std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator it =
|
||||||
this->ProjectMap.find(project);
|
this->ProjectMap.find(project);
|
||||||
if (it == this->ProjectMap.end())
|
if (it == this->ProjectMap.end())
|
||||||
{
|
{
|
||||||
@ -1516,8 +1516,8 @@ void cmGlobalGenerator::ComputeTargetObjects(cmGeneratorTarget*) const
|
|||||||
|
|
||||||
void cmGlobalGenerator::CheckLocalGenerators()
|
void cmGlobalGenerator::CheckLocalGenerators()
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmStdString> notFoundMap;
|
std::map<std::string, std::string> notFoundMap;
|
||||||
// std::set<cmStdString> notFoundMap;
|
// std::set<std::string> notFoundMap;
|
||||||
// after it is all done do a ConfigureFinalPass
|
// after it is all done do a ConfigureFinalPass
|
||||||
cmCacheManager* manager = 0;
|
cmCacheManager* manager = 0;
|
||||||
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
||||||
@ -1597,7 +1597,7 @@ void cmGlobalGenerator::CheckLocalGenerators()
|
|||||||
if(notFoundMap.size())
|
if(notFoundMap.size())
|
||||||
{
|
{
|
||||||
std::string notFoundVars;
|
std::string notFoundVars;
|
||||||
for(std::map<cmStdString, cmStdString>::const_iterator
|
for(std::map<std::string, std::string>::const_iterator
|
||||||
ii = notFoundMap.begin();
|
ii = notFoundMap.begin();
|
||||||
ii != notFoundMap.end();
|
ii != notFoundMap.end();
|
||||||
++ii)
|
++ii)
|
||||||
@ -1956,7 +1956,7 @@ bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
|
|||||||
void
|
void
|
||||||
cmGlobalGenerator::GetEnabledLanguages(std::vector<std::string>& lang) const
|
cmGlobalGenerator::GetEnabledLanguages(std::vector<std::string>& lang) const
|
||||||
{
|
{
|
||||||
for(std::map<cmStdString, bool>::const_iterator i =
|
for(std::map<std::string, bool>::const_iterator i =
|
||||||
this->LanguageEnabled.begin(); i != this->LanguageEnabled.end(); ++i)
|
this->LanguageEnabled.begin(); i != this->LanguageEnabled.end(); ++i)
|
||||||
{
|
{
|
||||||
lang.push_back(i->first);
|
lang.push_back(i->first);
|
||||||
@ -1965,7 +1965,7 @@ cmGlobalGenerator::GetEnabledLanguages(std::vector<std::string>& lang) const
|
|||||||
|
|
||||||
int cmGlobalGenerator::GetLinkerPreference(const std::string& lang) const
|
int cmGlobalGenerator::GetLinkerPreference(const std::string& lang) const
|
||||||
{
|
{
|
||||||
std::map<cmStdString, int>::const_iterator it =
|
std::map<std::string, int>::const_iterator it =
|
||||||
this->LanguageToLinkerPreference.find(lang);
|
this->LanguageToLinkerPreference.find(lang);
|
||||||
if (it != this->LanguageToLinkerPreference.end())
|
if (it != this->LanguageToLinkerPreference.end())
|
||||||
{
|
{
|
||||||
@ -2075,14 +2075,14 @@ cmGlobalGenerator::FindTarget(const std::string& name,
|
|||||||
{
|
{
|
||||||
if (!excludeAliases)
|
if (!excludeAliases)
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmTarget*>::const_iterator ai
|
std::map<std::string, cmTarget*>::const_iterator ai
|
||||||
= this->AliasTargets.find(name);
|
= this->AliasTargets.find(name);
|
||||||
if (ai != this->AliasTargets.end())
|
if (ai != this->AliasTargets.end())
|
||||||
{
|
{
|
||||||
return ai->second;
|
return ai->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::map<cmStdString,cmTarget *>::const_iterator i =
|
std::map<std::string,cmTarget *>::const_iterator i =
|
||||||
this->TotalTargets.find ( name );
|
this->TotalTargets.find ( name );
|
||||||
if ( i != this->TotalTargets.end() )
|
if ( i != this->TotalTargets.end() )
|
||||||
{
|
{
|
||||||
@ -2294,7 +2294,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
|
|||||||
{
|
{
|
||||||
if(!cmakeCfgIntDir || !*cmakeCfgIntDir || cmakeCfgIntDir[0] == '.')
|
if(!cmakeCfgIntDir || !*cmakeCfgIntDir || cmakeCfgIntDir[0] == '.')
|
||||||
{
|
{
|
||||||
std::set<cmStdString>* componentsSet = &this->InstallComponents;
|
std::set<std::string>* componentsSet = &this->InstallComponents;
|
||||||
cpackCommandLines.erase(cpackCommandLines.begin(),
|
cpackCommandLines.erase(cpackCommandLines.begin(),
|
||||||
cpackCommandLines.end());
|
cpackCommandLines.end());
|
||||||
depends.erase(depends.begin(), depends.end());
|
depends.erase(depends.begin(), depends.end());
|
||||||
@ -2302,7 +2302,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
|
|||||||
if ( componentsSet->size() > 0 )
|
if ( componentsSet->size() > 0 )
|
||||||
{
|
{
|
||||||
ostr << "Available install components are:";
|
ostr << "Available install components are:";
|
||||||
std::set<cmStdString>::iterator it;
|
std::set<std::string>::iterator it;
|
||||||
for (
|
for (
|
||||||
it = componentsSet->begin();
|
it = componentsSet->begin();
|
||||||
it != componentsSet->end();
|
it != componentsSet->end();
|
||||||
@ -2516,7 +2516,7 @@ cmGlobalGenerator::GenerateRuleFile(std::string const& output) const
|
|||||||
std::string cmGlobalGenerator::GetSharedLibFlagsForLanguage(
|
std::string cmGlobalGenerator::GetSharedLibFlagsForLanguage(
|
||||||
std::string const& l) const
|
std::string const& l) const
|
||||||
{
|
{
|
||||||
std::map<cmStdString, cmStdString>::const_iterator it =
|
std::map<std::string, std::string>::const_iterator it =
|
||||||
this->LanguageToOriginalSharedLibFlags.find(l);
|
this->LanguageToOriginalSharedLibFlags.find(l);
|
||||||
if(it != this->LanguageToOriginalSharedLibFlags.end())
|
if(it != this->LanguageToOriginalSharedLibFlags.end())
|
||||||
{
|
{
|
||||||
@ -2690,7 +2690,7 @@ void cmGlobalGenerator::AddToManifest(const char* config,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
std::set<cmStdString> const&
|
std::set<std::string> const&
|
||||||
cmGlobalGenerator::GetDirectoryContent(std::string const& dir, bool needDisk)
|
cmGlobalGenerator::GetDirectoryContent(std::string const& dir, bool needDisk)
|
||||||
{
|
{
|
||||||
DirectoryContent& dc = this->DirectoryContentMap[dir];
|
DirectoryContent& dc = this->DirectoryContentMap[dir];
|
||||||
@ -2796,7 +2796,7 @@ void cmGlobalGenerator::CheckRuleHashes(std::string const& pfile,
|
|||||||
fname = line.substr(33, line.npos);
|
fname = line.substr(33, line.npos);
|
||||||
|
|
||||||
// Look for a hash for this file's rule.
|
// Look for a hash for this file's rule.
|
||||||
std::map<cmStdString, RuleHash>::const_iterator rhi =
|
std::map<std::string, RuleHash>::const_iterator rhi =
|
||||||
this->RuleHashes.find(fname);
|
this->RuleHashes.find(fname);
|
||||||
if(rhi != this->RuleHashes.end())
|
if(rhi != this->RuleHashes.end())
|
||||||
{
|
{
|
||||||
@ -2841,7 +2841,7 @@ void cmGlobalGenerator::WriteRuleHashes(std::string const& pfile)
|
|||||||
{
|
{
|
||||||
cmGeneratedFileStream fout(pfile.c_str());
|
cmGeneratedFileStream fout(pfile.c_str());
|
||||||
fout << "# Hashes of file build rules.\n";
|
fout << "# Hashes of file build rules.\n";
|
||||||
for(std::map<cmStdString, RuleHash>::const_iterator
|
for(std::map<std::string, RuleHash>::const_iterator
|
||||||
rhi = this->RuleHashes.begin(); rhi != this->RuleHashes.end(); ++rhi)
|
rhi = this->RuleHashes.begin(); rhi != this->RuleHashes.end(); ++rhi)
|
||||||
{
|
{
|
||||||
fout.write(rhi->second.Data, 32);
|
fout.write(rhi->second.Data, 32);
|
||||||
@ -2862,7 +2862,7 @@ void cmGlobalGenerator::WriteSummary()
|
|||||||
cmGeneratedFileStream fout(fname.c_str());
|
cmGeneratedFileStream fout(fname.c_str());
|
||||||
|
|
||||||
// Generate summary information files for each target.
|
// Generate summary information files for each target.
|
||||||
for(std::map<cmStdString,cmTarget *>::const_iterator ti =
|
for(std::map<std::string,cmTarget *>::const_iterator ti =
|
||||||
this->TotalTargets.begin(); ti != this->TotalTargets.end(); ++ti)
|
this->TotalTargets.begin(); ti != this->TotalTargets.end(); ++ti)
|
||||||
{
|
{
|
||||||
if ((ti->second)->GetType() == cmTarget::INTERFACE_LIBRARY)
|
if ((ti->second)->GetType() == cmTarget::INTERFACE_LIBRARY)
|
||||||
|
@ -167,7 +167,7 @@ public:
|
|||||||
|
|
||||||
void AddInstallComponent(const char* component);
|
void AddInstallComponent(const char* component);
|
||||||
|
|
||||||
const std::set<cmStdString>* GetInstallComponents() const
|
const std::set<std::string>* GetInstallComponents() const
|
||||||
{ return &this->InstallComponents; }
|
{ return &this->InstallComponents; }
|
||||||
|
|
||||||
cmExportSetMap& GetExportSets() {return this->ExportSets;}
|
cmExportSetMap& GetExportSets() {return this->ExportSets;}
|
||||||
@ -244,7 +244,7 @@ public:
|
|||||||
from disk at most once and cached. During the generation step
|
from disk at most once and cached. During the generation step
|
||||||
the content will include the target files to be built even if
|
the content will include the target files to be built even if
|
||||||
they do not yet exist. */
|
they do not yet exist. */
|
||||||
std::set<cmStdString> const& GetDirectoryContent(std::string const& dir,
|
std::set<std::string> const& GetDirectoryContent(std::string const& dir,
|
||||||
bool needDisk = true);
|
bool needDisk = true);
|
||||||
|
|
||||||
void AddTarget(cmTarget* t);
|
void AddTarget(cmTarget* t);
|
||||||
@ -276,7 +276,7 @@ public:
|
|||||||
/** Get per-target generator information. */
|
/** Get per-target generator information. */
|
||||||
cmGeneratorTarget* GetGeneratorTarget(cmTarget const*) const;
|
cmGeneratorTarget* GetGeneratorTarget(cmTarget const*) const;
|
||||||
|
|
||||||
const std::map<cmStdString, std::vector<cmLocalGenerator*> >& GetProjectMap()
|
const std::map<std::string, std::vector<cmLocalGenerator*> >& GetProjectMap()
|
||||||
const {return this->ProjectMap;}
|
const {return this->ProjectMap;}
|
||||||
|
|
||||||
// track files replaced during a Generate
|
// track files replaced during a Generate
|
||||||
@ -364,18 +364,18 @@ protected:
|
|||||||
bool UseLinkScript;
|
bool UseLinkScript;
|
||||||
bool ForceUnixPaths;
|
bool ForceUnixPaths;
|
||||||
bool ToolSupportsColor;
|
bool ToolSupportsColor;
|
||||||
cmStdString FindMakeProgramFile;
|
std::string FindMakeProgramFile;
|
||||||
cmStdString ConfiguredFilesPath;
|
std::string ConfiguredFilesPath;
|
||||||
cmake *CMakeInstance;
|
cmake *CMakeInstance;
|
||||||
std::vector<cmLocalGenerator *> LocalGenerators;
|
std::vector<cmLocalGenerator *> LocalGenerators;
|
||||||
cmLocalGenerator* CurrentLocalGenerator;
|
cmLocalGenerator* CurrentLocalGenerator;
|
||||||
// map from project name to vector of local generators in that project
|
// map from project name to vector of local generators in that project
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> > ProjectMap;
|
std::map<std::string, std::vector<cmLocalGenerator*> > ProjectMap;
|
||||||
std::map<cmLocalGenerator*, std::set<cmTarget const*> >
|
std::map<cmLocalGenerator*, std::set<cmTarget const*> >
|
||||||
LocalGeneratorToTargetMap;
|
LocalGeneratorToTargetMap;
|
||||||
|
|
||||||
// Set of named installation components requested by the project.
|
// Set of named installation components requested by the project.
|
||||||
std::set<cmStdString> InstallComponents;
|
std::set<std::string> InstallComponents;
|
||||||
bool InstallTargetEnabled;
|
bool InstallTargetEnabled;
|
||||||
// Sets of named target exports
|
// Sets of named target exports
|
||||||
cmExportSetMap ExportSets;
|
cmExportSetMap ExportSets;
|
||||||
@ -387,9 +387,9 @@ protected:
|
|||||||
cmTargetManifest TargetManifest;
|
cmTargetManifest TargetManifest;
|
||||||
|
|
||||||
// All targets in the entire project.
|
// All targets in the entire project.
|
||||||
std::map<cmStdString,cmTarget *> TotalTargets;
|
std::map<std::string,cmTarget *> TotalTargets;
|
||||||
std::map<cmStdString,cmTarget *> AliasTargets;
|
std::map<std::string,cmTarget *> AliasTargets;
|
||||||
std::map<cmStdString,cmTarget *> ImportedTargets;
|
std::map<std::string,cmTarget *> ImportedTargets;
|
||||||
std::vector<cmGeneratorExpressionEvaluationFile*> EvaluationFiles;
|
std::vector<cmGeneratorExpressionEvaluationFile*> EvaluationFiles;
|
||||||
|
|
||||||
virtual const char* GetPredefinedTargetsFolder();
|
virtual const char* GetPredefinedTargetsFolder();
|
||||||
@ -401,18 +401,18 @@ private:
|
|||||||
float FirstTimeProgress;
|
float FirstTimeProgress;
|
||||||
// If you add a new map here, make sure it is copied
|
// If you add a new map here, make sure it is copied
|
||||||
// in EnableLanguagesFromGenerator
|
// in EnableLanguagesFromGenerator
|
||||||
std::map<cmStdString, bool> IgnoreExtensions;
|
std::map<std::string, bool> IgnoreExtensions;
|
||||||
std::map<cmStdString, bool> LanguageEnabled;
|
std::map<std::string, bool> LanguageEnabled;
|
||||||
std::set<cmStdString> LanguagesReady; // Ready for try_compile
|
std::set<std::string> LanguagesReady; // Ready for try_compile
|
||||||
std::map<cmStdString, cmStdString> OutputExtensions;
|
std::map<std::string, std::string> OutputExtensions;
|
||||||
std::map<cmStdString, cmStdString> LanguageToOutputExtension;
|
std::map<std::string, std::string> LanguageToOutputExtension;
|
||||||
std::map<cmStdString, cmStdString> ExtensionToLanguage;
|
std::map<std::string, std::string> ExtensionToLanguage;
|
||||||
std::map<cmStdString, int> LanguageToLinkerPreference;
|
std::map<std::string, int> LanguageToLinkerPreference;
|
||||||
std::map<cmStdString, cmStdString> LanguageToOriginalSharedLibFlags;
|
std::map<std::string, std::string> LanguageToOriginalSharedLibFlags;
|
||||||
|
|
||||||
// Record hashes for rules and outputs.
|
// Record hashes for rules and outputs.
|
||||||
struct RuleHash { char Data[32]; };
|
struct RuleHash { char Data[32]; };
|
||||||
std::map<cmStdString, RuleHash> RuleHashes;
|
std::map<std::string, RuleHash> RuleHashes;
|
||||||
void CheckRuleHashes();
|
void CheckRuleHashes();
|
||||||
void CheckRuleHashes(std::string const& pfile, std::string const& home);
|
void CheckRuleHashes(std::string const& pfile, std::string const& home);
|
||||||
void WriteRuleHashes(std::string const& pfile);
|
void WriteRuleHashes(std::string const& pfile);
|
||||||
@ -448,18 +448,18 @@ private:
|
|||||||
virtual const char* GetBuildIgnoreErrorsFlag() const { return 0; }
|
virtual const char* GetBuildIgnoreErrorsFlag() const { return 0; }
|
||||||
|
|
||||||
// Cache directory content and target files to be built.
|
// Cache directory content and target files to be built.
|
||||||
struct DirectoryContent: public std::set<cmStdString>
|
struct DirectoryContent: public std::set<std::string>
|
||||||
{
|
{
|
||||||
typedef std::set<cmStdString> derived;
|
typedef std::set<std::string> derived;
|
||||||
bool LoadedFromDisk;
|
bool LoadedFromDisk;
|
||||||
DirectoryContent(): LoadedFromDisk(false) {}
|
DirectoryContent(): LoadedFromDisk(false) {}
|
||||||
DirectoryContent(DirectoryContent const& dc):
|
DirectoryContent(DirectoryContent const& dc):
|
||||||
derived(dc), LoadedFromDisk(dc.LoadedFromDisk) {}
|
derived(dc), LoadedFromDisk(dc.LoadedFromDisk) {}
|
||||||
};
|
};
|
||||||
std::map<cmStdString, DirectoryContent> DirectoryContentMap;
|
std::map<std::string, DirectoryContent> DirectoryContentMap;
|
||||||
|
|
||||||
// Set of binary directories on disk.
|
// Set of binary directories on disk.
|
||||||
std::set<cmStdString> BinaryDirectories;
|
std::set<std::string> BinaryDirectories;
|
||||||
|
|
||||||
// track targets to issue CMP0042 warning for.
|
// track targets to issue CMP0042 warning for.
|
||||||
std::set<std::string> CMP0042WarnTargets;
|
std::set<std::string> CMP0042WarnTargets;
|
||||||
|
@ -44,7 +44,7 @@ void cmGlobalKdevelopGenerator::Generate()
|
|||||||
{
|
{
|
||||||
// for each sub project in the project create
|
// for each sub project in the project create
|
||||||
// a kdevelop project
|
// a kdevelop project
|
||||||
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
|
for (std::map<std::string, std::vector<cmLocalGenerator*> >::const_iterator
|
||||||
it = this->GlobalGenerator->GetProjectMap().begin();
|
it = this->GlobalGenerator->GetProjectMap().begin();
|
||||||
it!= this->GlobalGenerator->GetProjectMap().end();
|
it!= this->GlobalGenerator->GetProjectMap().end();
|
||||||
++it)
|
++it)
|
||||||
@ -103,7 +103,7 @@ bool cmGlobalKdevelopGenerator
|
|||||||
std::string projectDir = projectDirIn + "/";
|
std::string projectDir = projectDirIn + "/";
|
||||||
std::string filename = outputDir+ "/" + projectname +".kdevelop.filelist";
|
std::string filename = outputDir+ "/" + projectname +".kdevelop.filelist";
|
||||||
|
|
||||||
std::set<cmStdString> files;
|
std::set<std::string> files;
|
||||||
std::string tmp;
|
std::string tmp;
|
||||||
|
|
||||||
for (std::vector<cmLocalGenerator*>::const_iterator it=lgs.begin();
|
for (std::vector<cmLocalGenerator*>::const_iterator it=lgs.begin();
|
||||||
@ -217,7 +217,7 @@ bool cmGlobalKdevelopGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
fileToOpen="";
|
fileToOpen="";
|
||||||
for (std::set<cmStdString>::const_iterator it=files.begin();
|
for (std::set<std::string>::const_iterator it=files.begin();
|
||||||
it!=files.end(); it++)
|
it!=files.end(); it++)
|
||||||
{
|
{
|
||||||
// get the full path to the file
|
// get the full path to the file
|
||||||
|
@ -886,7 +886,7 @@ cmGlobalNinjaGenerator
|
|||||||
if (target->GetType() == cmTarget::GLOBAL_TARGET) {
|
if (target->GetType() == cmTarget::GLOBAL_TARGET) {
|
||||||
// Global targets only depend on other utilities, which may not appear in
|
// Global targets only depend on other utilities, which may not appear in
|
||||||
// the TargetDepends set (e.g. "all").
|
// the TargetDepends set (e.g. "all").
|
||||||
std::set<cmStdString> const& utils = target->GetUtilities();
|
std::set<std::string> const& utils = target->GetUtilities();
|
||||||
std::copy(utils.begin(), utils.end(), std::back_inserter(outputs));
|
std::copy(utils.begin(), utils.end(), std::back_inserter(outputs));
|
||||||
} else {
|
} else {
|
||||||
cmTargetDependSet const& targetDeps =
|
cmTargetDependSet const& targetDeps =
|
||||||
|
@ -624,7 +624,7 @@ void cmGlobalUnixMakefileGenerator3
|
|||||||
void
|
void
|
||||||
cmGlobalUnixMakefileGenerator3
|
cmGlobalUnixMakefileGenerator3
|
||||||
::WriteConvenienceRules(std::ostream& ruleFileStream,
|
::WriteConvenienceRules(std::ostream& ruleFileStream,
|
||||||
std::set<cmStdString> &emitted)
|
std::set<std::string> &emitted)
|
||||||
{
|
{
|
||||||
std::vector<std::string> depends;
|
std::vector<std::string> depends;
|
||||||
std::vector<std::string> commands;
|
std::vector<std::string> commands;
|
||||||
@ -1049,7 +1049,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
|
|||||||
lg->AppendEcho(commands,"... depend");
|
lg->AppendEcho(commands,"... depend");
|
||||||
|
|
||||||
// Keep track of targets already listed.
|
// Keep track of targets already listed.
|
||||||
std::set<cmStdString> emittedTargets;
|
std::set<std::string> emittedTargets;
|
||||||
|
|
||||||
// for each local generator
|
// for each local generator
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@ -1084,8 +1084,8 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::vector<cmStdString> const& localHelp = lg->GetLocalHelp();
|
std::vector<std::string> const& localHelp = lg->GetLocalHelp();
|
||||||
for(std::vector<cmStdString>::const_iterator o = localHelp.begin();
|
for(std::vector<std::string>::const_iterator o = localHelp.begin();
|
||||||
o != localHelp.end(); ++o)
|
o != localHelp.end(); ++o)
|
||||||
{
|
{
|
||||||
path = "... ";
|
path = "... ";
|
||||||
@ -1102,9 +1102,9 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
|
|||||||
bool cmGlobalUnixMakefileGenerator3
|
bool cmGlobalUnixMakefileGenerator3
|
||||||
::NeedRequiresStep(cmTarget const& target)
|
::NeedRequiresStep(cmTarget const& target)
|
||||||
{
|
{
|
||||||
std::set<cmStdString> languages;
|
std::set<std::string> languages;
|
||||||
target.GetLanguages(languages);
|
target.GetLanguages(languages);
|
||||||
for(std::set<cmStdString>::const_iterator l = languages.begin();
|
for(std::set<std::string>::const_iterator l = languages.begin();
|
||||||
l != languages.end(); ++l)
|
l != languages.end(); ++l)
|
||||||
{
|
{
|
||||||
std::string var = "CMAKE_NEEDS_REQUIRES_STEP_";
|
std::string var = "CMAKE_NEEDS_REQUIRES_STEP_";
|
||||||
|
@ -96,7 +96,7 @@ public:
|
|||||||
|
|
||||||
// write the top level target rules
|
// write the top level target rules
|
||||||
void WriteConvenienceRules(std::ostream& ruleFileStream,
|
void WriteConvenienceRules(std::ostream& ruleFileStream,
|
||||||
std::set<cmStdString> &emitted);
|
std::set<std::string> &emitted);
|
||||||
|
|
||||||
/** Get the command to use for a target that has no rule. This is
|
/** Get the command to use for a target that has no rule. This is
|
||||||
used for multiple output dependencies and for cmake_force. */
|
used for multiple output dependencies and for cmake_force. */
|
||||||
|
@ -260,7 +260,7 @@ void cmGlobalVisualStudio6Generator
|
|||||||
// output the DSW file
|
// output the DSW file
|
||||||
void cmGlobalVisualStudio6Generator::OutputDSWFile()
|
void cmGlobalVisualStudio6Generator::OutputDSWFile()
|
||||||
{
|
{
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
|
std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it;
|
||||||
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
||||||
{
|
{
|
||||||
this->OutputDSWFile(it->second[0], it->second);
|
this->OutputDSWFile(it->second[0], it->second);
|
||||||
@ -318,7 +318,7 @@ void cmGlobalVisualStudio6Generator::WriteProject(std::ostream& fout,
|
|||||||
void cmGlobalVisualStudio6Generator::WriteExternalProject(std::ostream& fout,
|
void cmGlobalVisualStudio6Generator::WriteExternalProject(std::ostream& fout,
|
||||||
const std::string& name,
|
const std::string& name,
|
||||||
const char* location,
|
const char* location,
|
||||||
const std::set<cmStdString>& dependencies)
|
const std::set<std::string>& dependencies)
|
||||||
{
|
{
|
||||||
fout << "#########################################################"
|
fout << "#########################################################"
|
||||||
"######################\n\n";
|
"######################\n\n";
|
||||||
@ -329,7 +329,7 @@ void cmGlobalVisualStudio6Generator::WriteExternalProject(std::ostream& fout,
|
|||||||
fout << "{{{\n";
|
fout << "{{{\n";
|
||||||
|
|
||||||
|
|
||||||
std::set<cmStdString>::const_iterator i, end;
|
std::set<std::string>::const_iterator i, end;
|
||||||
// write dependencies.
|
// write dependencies.
|
||||||
i = dependencies.begin();
|
i = dependencies.begin();
|
||||||
end = dependencies.end();
|
end = dependencies.end();
|
||||||
|
@ -103,7 +103,7 @@ private:
|
|||||||
cmTarget const& t);
|
cmTarget const& t);
|
||||||
void WriteExternalProject(std::ostream& fout,
|
void WriteExternalProject(std::ostream& fout,
|
||||||
const std::string& name, const char* path,
|
const std::string& name, const char* path,
|
||||||
const std::set<cmStdString>& dependencies);
|
const std::set<std::string>& dependencies);
|
||||||
void WriteDSWFooter(std::ostream& fout);
|
void WriteDSWFooter(std::ostream& fout);
|
||||||
virtual std::string WriteUtilityDepend(cmTarget const* target);
|
virtual std::string WriteUtilityDepend(cmTarget const* target);
|
||||||
std::string MSDevCommand;
|
std::string MSDevCommand;
|
||||||
|
@ -237,7 +237,7 @@ void cmGlobalVisualStudio71Generator
|
|||||||
const std::string& name,
|
const std::string& name,
|
||||||
const char* location,
|
const char* location,
|
||||||
const char* typeGuid,
|
const char* typeGuid,
|
||||||
const std::set<cmStdString>& depends)
|
const std::set<std::string>& depends)
|
||||||
{
|
{
|
||||||
fout << "Project(\"{"
|
fout << "Project(\"{"
|
||||||
<< (typeGuid ? typeGuid : this->ExternalProjectType(location))
|
<< (typeGuid ? typeGuid : this->ExternalProjectType(location))
|
||||||
@ -252,7 +252,7 @@ void cmGlobalVisualStudio71Generator
|
|||||||
if(!depends.empty())
|
if(!depends.empty())
|
||||||
{
|
{
|
||||||
fout << "\tProjectSection(ProjectDependencies) = postProject\n";
|
fout << "\tProjectSection(ProjectDependencies) = postProject\n";
|
||||||
std::set<cmStdString>::const_iterator it;
|
std::set<std::string>::const_iterator it;
|
||||||
for(it = depends.begin(); it != depends.end(); ++it)
|
for(it = depends.begin(); it != depends.end(); ++it)
|
||||||
{
|
{
|
||||||
if(it->size() > 0)
|
if(it->size() > 0)
|
||||||
|
@ -72,7 +72,7 @@ protected:
|
|||||||
const std::string& name,
|
const std::string& name,
|
||||||
const char* path,
|
const char* path,
|
||||||
const char* typeGuid,
|
const char* typeGuid,
|
||||||
const std::set<cmStdString>& depends);
|
const std::set<std::string>& depends);
|
||||||
virtual void WriteSLNHeader(std::ostream& fout);
|
virtual void WriteSLNHeader(std::ostream& fout);
|
||||||
|
|
||||||
std::string ProjectConfigurationSectionName;
|
std::string ProjectConfigurationSectionName;
|
||||||
|
@ -353,7 +353,7 @@ void cmGlobalVisualStudio7Generator
|
|||||||
// output the SLN file
|
// output the SLN file
|
||||||
void cmGlobalVisualStudio7Generator::OutputSLNFile()
|
void cmGlobalVisualStudio7Generator::OutputSLNFile()
|
||||||
{
|
{
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
|
std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it;
|
||||||
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
||||||
{
|
{
|
||||||
this->OutputSLNFile(it->second[0], it->second);
|
this->OutputSLNFile(it->second[0], it->second);
|
||||||
@ -761,7 +761,7 @@ void cmGlobalVisualStudio7Generator::WriteExternalProject(std::ostream& fout,
|
|||||||
const std::string& name,
|
const std::string& name,
|
||||||
const char* location,
|
const char* location,
|
||||||
const char* typeGuid,
|
const char* typeGuid,
|
||||||
const std::set<cmStdString>&)
|
const std::set<std::string>&)
|
||||||
{
|
{
|
||||||
std::string d = cmSystemTools::ConvertToOutputPath(location);
|
std::string d = cmSystemTools::ConvertToOutputPath(location);
|
||||||
fout << "Project("
|
fout << "Project("
|
||||||
|
@ -156,7 +156,7 @@ protected:
|
|||||||
const std::string& name,
|
const std::string& name,
|
||||||
const char* path,
|
const char* path,
|
||||||
const char* typeGuid,
|
const char* typeGuid,
|
||||||
const std::set<cmStdString>&
|
const std::set<std::string>&
|
||||||
dependencies);
|
dependencies);
|
||||||
|
|
||||||
std::string ConvertToSolutionPath(const char* path);
|
std::string ConvertToSolutionPath(const char* path);
|
||||||
@ -164,7 +164,7 @@ protected:
|
|||||||
std::set<std::string> IsPartOfDefaultBuild(const std::string& project,
|
std::set<std::string> IsPartOfDefaultBuild(const std::string& project,
|
||||||
cmTarget const* target);
|
cmTarget const* target);
|
||||||
std::vector<std::string> Configurations;
|
std::vector<std::string> Configurations;
|
||||||
std::map<cmStdString, cmStdString> GUIDMap;
|
std::map<std::string, std::string> GUIDMap;
|
||||||
|
|
||||||
virtual void WriteFolders(std::ostream& fout);
|
virtual void WriteFolders(std::ostream& fout);
|
||||||
virtual void WriteFoldersContent(std::ostream& fout);
|
virtual void WriteFoldersContent(std::ostream& fout);
|
||||||
|
@ -338,7 +338,7 @@ void cmGlobalVisualStudio8Generator::Generate()
|
|||||||
if(this->AddCheckTarget())
|
if(this->AddCheckTarget())
|
||||||
{
|
{
|
||||||
// All targets depend on the build-system check target.
|
// All targets depend on the build-system check target.
|
||||||
for(std::map<cmStdString,cmTarget *>::const_iterator
|
for(std::map<std::string,cmTarget *>::const_iterator
|
||||||
ti = this->TotalTargets.begin();
|
ti = this->TotalTargets.begin();
|
||||||
ti != this->TotalTargets.end(); ++ti)
|
ti != this->TotalTargets.end(); ++ti)
|
||||||
{
|
{
|
||||||
@ -436,7 +436,7 @@ bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies(
|
|||||||
cmTarget& target)
|
cmTarget& target)
|
||||||
{
|
{
|
||||||
// Look for utility dependencies that magically link.
|
// Look for utility dependencies that magically link.
|
||||||
for(std::set<cmStdString>::const_iterator ui =
|
for(std::set<std::string>::const_iterator ui =
|
||||||
target.GetUtilities().begin();
|
target.GetUtilities().begin();
|
||||||
ui != target.GetUtilities().end(); ++ui)
|
ui != target.GetUtilities().end(); ++ui)
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,7 @@ void cmGlobalVisualStudioGenerator::Generate()
|
|||||||
const char* no_working_dir = 0;
|
const char* no_working_dir = 0;
|
||||||
std::vector<std::string> no_depends;
|
std::vector<std::string> no_depends;
|
||||||
cmCustomCommandLines no_commands;
|
cmCustomCommandLines no_commands;
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
|
std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it;
|
||||||
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
||||||
{
|
{
|
||||||
std::vector<cmLocalGenerator*>& gen = it->second;
|
std::vector<cmLocalGenerator*>& gen = it->second;
|
||||||
@ -128,7 +128,7 @@ cmGlobalVisualStudioGenerator
|
|||||||
|
|
||||||
// Count the number of object files with each name. Note that
|
// Count the number of object files with each name. Note that
|
||||||
// windows file names are not case sensitive.
|
// windows file names are not case sensitive.
|
||||||
std::map<cmStdString, int> counts;
|
std::map<std::string, int> counts;
|
||||||
std::vector<cmSourceFile*> objectSources;
|
std::vector<cmSourceFile*> objectSources;
|
||||||
gt->GetObjectSources(objectSources);
|
gt->GetObjectSources(objectSources);
|
||||||
for(std::vector<cmSourceFile*>::const_iterator
|
for(std::vector<cmSourceFile*>::const_iterator
|
||||||
@ -380,7 +380,7 @@ bool cmGlobalVisualStudioGenerator::ComputeTargetDepends()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
|
std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it;
|
||||||
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
||||||
{
|
{
|
||||||
std::vector<cmLocalGenerator*>& gen = it->second;
|
std::vector<cmLocalGenerator*>& gen = it->second;
|
||||||
@ -852,7 +852,7 @@ bool
|
|||||||
cmGlobalVisualStudioGenerator::TargetIsFortranOnly(cmTarget const& target)
|
cmGlobalVisualStudioGenerator::TargetIsFortranOnly(cmTarget const& target)
|
||||||
{
|
{
|
||||||
// check to see if this is a fortran build
|
// check to see if this is a fortran build
|
||||||
std::set<cmStdString> languages;
|
std::set<std::string> languages;
|
||||||
target.GetLanguages(languages);
|
target.GetLanguages(languages);
|
||||||
if(languages.size() == 1)
|
if(languages.size() == 1)
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ protected:
|
|||||||
virtual void AddPlatformDefinitions(cmMakefile* mf);
|
virtual void AddPlatformDefinitions(cmMakefile* mf);
|
||||||
|
|
||||||
virtual bool ComputeTargetDepends();
|
virtual bool ComputeTargetDepends();
|
||||||
class VSDependSet: public std::set<cmStdString> {};
|
class VSDependSet: public std::set<std::string> {};
|
||||||
class VSDependMap: public std::map<cmTarget const*, VSDependSet> {};
|
class VSDependMap: public std::map<cmTarget const*, VSDependSet> {};
|
||||||
VSDependMap VSTargetDepends;
|
VSDependMap VSTargetDepends;
|
||||||
void ComputeVSTargetDepends(cmTarget&);
|
void ComputeVSTargetDepends(cmTarget&);
|
||||||
@ -108,7 +108,7 @@ protected:
|
|||||||
std::string GetUtilityForTarget(cmTarget& target, const std::string&);
|
std::string GetUtilityForTarget(cmTarget& target, const std::string&);
|
||||||
virtual std::string WriteUtilityDepend(cmTarget const*) = 0;
|
virtual std::string WriteUtilityDepend(cmTarget const*) = 0;
|
||||||
std::string GetUtilityDepend(cmTarget const* target);
|
std::string GetUtilityDepend(cmTarget const* target);
|
||||||
typedef std::map<cmTarget const*, cmStdString> UtilityDependsMap;
|
typedef std::map<cmTarget const*, std::string> UtilityDependsMap;
|
||||||
UtilityDependsMap UtilityDepends;
|
UtilityDependsMap UtilityDepends;
|
||||||
const char* AdditionalPlatformDefinition;
|
const char* AdditionalPlatformDefinition;
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ cmLocalGenerator *cmGlobalXCodeGenerator::CreateLocalGenerator()
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmGlobalXCodeGenerator::Generate()
|
void cmGlobalXCodeGenerator::Generate()
|
||||||
{
|
{
|
||||||
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
|
std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it;
|
||||||
// make sure extra targets are added before calling
|
// make sure extra targets are added before calling
|
||||||
// the parent generate which will call trace depends
|
// the parent generate which will call trace depends
|
||||||
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
|
||||||
@ -570,7 +570,7 @@ void cmGlobalXCodeGenerator::addObject(cmXCodeObject *obj)
|
|||||||
{
|
{
|
||||||
if(obj->GetType() == cmXCodeObject::OBJECT)
|
if(obj->GetType() == cmXCodeObject::OBJECT)
|
||||||
{
|
{
|
||||||
cmStdString id = obj->GetId();
|
std::string id = obj->GetId();
|
||||||
|
|
||||||
// If this is a duplicate id, it's an error:
|
// If this is a duplicate id, it's an error:
|
||||||
//
|
//
|
||||||
@ -631,17 +631,17 @@ cmXCodeObject* cmGlobalXCodeGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmStdString
|
std::string
|
||||||
GetGroupMapKeyFromPath(cmTarget& cmtarget, const std::string& fullpath)
|
GetGroupMapKeyFromPath(cmTarget& cmtarget, const std::string& fullpath)
|
||||||
{
|
{
|
||||||
cmStdString key(cmtarget.GetName());
|
std::string key(cmtarget.GetName());
|
||||||
key += "-";
|
key += "-";
|
||||||
key += fullpath;
|
key += fullpath;
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmStdString
|
std::string
|
||||||
GetGroupMapKey(cmTarget& cmtarget, cmSourceFile* sf)
|
GetGroupMapKey(cmTarget& cmtarget, cmSourceFile* sf)
|
||||||
{
|
{
|
||||||
return GetGroupMapKeyFromPath(cmtarget, sf->GetFullPath());
|
return GetGroupMapKeyFromPath(cmtarget, sf->GetFullPath());
|
||||||
@ -844,7 +844,7 @@ cmGlobalXCodeGenerator::CreateXCodeFileReferenceFromPath(
|
|||||||
fileRef->SetComment(fname.c_str());
|
fileRef->SetComment(fname.c_str());
|
||||||
this->FileRefs[fname] = fileRef;
|
this->FileRefs[fname] = fileRef;
|
||||||
}
|
}
|
||||||
cmStdString key = GetGroupMapKeyFromPath(cmtarget, fullpath);
|
std::string key = GetGroupMapKeyFromPath(cmtarget, fullpath);
|
||||||
cmXCodeObject* group = this->GroupMap[key];
|
cmXCodeObject* group = this->GroupMap[key];
|
||||||
cmXCodeObject* children = group->GetObject("children");
|
cmXCodeObject* children = group->GetObject("children");
|
||||||
if (!children->HasObject(fileRef))
|
if (!children->HasObject(fileRef))
|
||||||
@ -1127,7 +1127,7 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
|
|||||||
std::vector<cmXCodeObject*> contentBuildPhases;
|
std::vector<cmXCodeObject*> contentBuildPhases;
|
||||||
if (isFrameworkTarget || isBundleTarget || isCFBundleTarget)
|
if (isFrameworkTarget || isBundleTarget || isCFBundleTarget)
|
||||||
{
|
{
|
||||||
typedef std::map<cmStdString, std::vector<cmSourceFile*> >
|
typedef std::map<std::string, std::vector<cmSourceFile*> >
|
||||||
mapOfVectorOfSourceFiles;
|
mapOfVectorOfSourceFiles;
|
||||||
mapOfVectorOfSourceFiles bundleFiles;
|
mapOfVectorOfSourceFiles bundleFiles;
|
||||||
for(std::vector<cmSourceFile*>::const_iterator i = classes.begin();
|
for(std::vector<cmSourceFile*>::const_iterator i = classes.begin();
|
||||||
@ -1216,7 +1216,7 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
|
|||||||
void cmGlobalXCodeGenerator::ForceLinkerLanguages()
|
void cmGlobalXCodeGenerator::ForceLinkerLanguages()
|
||||||
{
|
{
|
||||||
// This makes sure all targets link using the proper language.
|
// This makes sure all targets link using the proper language.
|
||||||
for(std::map<cmStdString, cmTarget*>::const_iterator
|
for(std::map<std::string, cmTarget*>::const_iterator
|
||||||
ti = this->TotalTargets.begin(); ti != this->TotalTargets.end(); ++ti)
|
ti = this->TotalTargets.begin(); ti != this->TotalTargets.end(); ++ti)
|
||||||
{
|
{
|
||||||
this->ForceLinkerLanguage(*ti->second);
|
this->ForceLinkerLanguage(*ti->second);
|
||||||
@ -1477,7 +1477,7 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase,
|
|||||||
|
|
||||||
// collect multiple outputs of custom commands into a set
|
// collect multiple outputs of custom commands into a set
|
||||||
// which will be used for every configuration
|
// which will be used for every configuration
|
||||||
std::map<cmStdString, cmStdString> multipleOutputPairs;
|
std::map<std::string, std::string> multipleOutputPairs;
|
||||||
for(std::vector<cmCustomCommand>::const_iterator i = commands.begin();
|
for(std::vector<cmCustomCommand>::const_iterator i = commands.begin();
|
||||||
i != commands.end(); ++i)
|
i != commands.end(); ++i)
|
||||||
{
|
{
|
||||||
@ -1548,8 +1548,8 @@ void cmGlobalXCodeGenerator
|
|||||||
std::vector<cmCustomCommand>
|
std::vector<cmCustomCommand>
|
||||||
const & commands,
|
const & commands,
|
||||||
const char* configName,
|
const char* configName,
|
||||||
const std::map<cmStdString,
|
const std::map<std::string,
|
||||||
cmStdString>& multipleOutputPairs
|
std::string>& multipleOutputPairs
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::string makefileName=makefileBasename;
|
std::string makefileName=makefileBasename;
|
||||||
@ -1571,7 +1571,7 @@ void cmGlobalXCodeGenerator
|
|||||||
|
|
||||||
// have all depend on all outputs
|
// have all depend on all outputs
|
||||||
makefileStream << "all: ";
|
makefileStream << "all: ";
|
||||||
std::map<const cmCustomCommand*, cmStdString> tname;
|
std::map<const cmCustomCommand*, std::string> tname;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for(std::vector<cmCustomCommand>::const_iterator i = commands.begin();
|
for(std::vector<cmCustomCommand>::const_iterator i = commands.begin();
|
||||||
i != commands.end(); ++i)
|
i != commands.end(); ++i)
|
||||||
@ -1669,7 +1669,7 @@ void cmGlobalXCodeGenerator
|
|||||||
makefileStream <<
|
makefileStream <<
|
||||||
"\n# Dependencies of multiple outputs to their primary outputs \n";
|
"\n# Dependencies of multiple outputs to their primary outputs \n";
|
||||||
|
|
||||||
for(std::map<cmStdString, cmStdString>::const_iterator o =
|
for(std::map<std::string, std::string>::const_iterator o =
|
||||||
multipleOutputPairs.begin(); o != multipleOutputPairs.end(); ++o)
|
multipleOutputPairs.begin(); o != multipleOutputPairs.end(); ++o)
|
||||||
{
|
{
|
||||||
makefileStream << o->first << ": " << o->second << "\n";
|
makefileStream << o->first << ": " << o->second << "\n";
|
||||||
@ -1678,7 +1678,7 @@ void cmGlobalXCodeGenerator
|
|||||||
makefileStream <<
|
makefileStream <<
|
||||||
"\n"
|
"\n"
|
||||||
"cmake_check_multiple_outputs:\n";
|
"cmake_check_multiple_outputs:\n";
|
||||||
for(std::map<cmStdString, cmStdString>::const_iterator o =
|
for(std::map<std::string, std::string>::const_iterator o =
|
||||||
multipleOutputPairs.begin(); o != multipleOutputPairs.end(); ++o)
|
multipleOutputPairs.begin(); o != multipleOutputPairs.end(); ++o)
|
||||||
{
|
{
|
||||||
makefileStream << "\t@if [ ! -f "
|
makefileStream << "\t@if [ ! -f "
|
||||||
@ -2088,7 +2088,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
|||||||
std::vector<std::string> includes;
|
std::vector<std::string> includes;
|
||||||
this->CurrentLocalGenerator->GetIncludeDirectories(includes, gtgt,
|
this->CurrentLocalGenerator->GetIncludeDirectories(includes, gtgt,
|
||||||
"C", configName);
|
"C", configName);
|
||||||
std::set<cmStdString> emitted;
|
std::set<std::string> emitted;
|
||||||
emitted.insert("/System/Library/Frameworks");
|
emitted.insert("/System/Library/Frameworks");
|
||||||
for(std::vector<std::string>::iterator i = includes.begin();
|
for(std::vector<std::string>::iterator i = includes.begin();
|
||||||
i != includes.end(); ++i)
|
i != includes.end(); ++i)
|
||||||
@ -2357,18 +2357,18 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
|||||||
{
|
{
|
||||||
if(i->first.find("XCODE_ATTRIBUTE_") == 0)
|
if(i->first.find("XCODE_ATTRIBUTE_") == 0)
|
||||||
{
|
{
|
||||||
cmStdString attribute = i->first.substr(16);
|
std::string attribute = i->first.substr(16);
|
||||||
// Handle [variant=<config>] condition explicitly here.
|
// Handle [variant=<config>] condition explicitly here.
|
||||||
cmStdString::size_type beginVariant =
|
std::string::size_type beginVariant =
|
||||||
attribute.find("[variant=");
|
attribute.find("[variant=");
|
||||||
if (beginVariant != cmStdString::npos)
|
if (beginVariant != std::string::npos)
|
||||||
{
|
{
|
||||||
cmStdString::size_type endVariant =
|
std::string::size_type endVariant =
|
||||||
attribute.find("]", beginVariant+9);
|
attribute.find("]", beginVariant+9);
|
||||||
if (endVariant != cmStdString::npos)
|
if (endVariant != std::string::npos)
|
||||||
{
|
{
|
||||||
// Compare the variant to the configuration.
|
// Compare the variant to the configuration.
|
||||||
cmStdString variant =
|
std::string variant =
|
||||||
attribute.substr(beginVariant+9, endVariant-beginVariant-9);
|
attribute.substr(beginVariant+9, endVariant-beginVariant-9);
|
||||||
if (variant == configName)
|
if (variant == configName)
|
||||||
{
|
{
|
||||||
@ -2969,7 +2969,7 @@ void cmGlobalXCodeGenerator::CreateGroups(cmLocalGenerator* root,
|
|||||||
mf->FindSourceGroup(source.c_str(), sourceGroups);
|
mf->FindSourceGroup(source.c_str(), sourceGroups);
|
||||||
cmXCodeObject* pbxgroup =
|
cmXCodeObject* pbxgroup =
|
||||||
this->CreateOrGetPBXGroup(cmtarget, sourceGroup);
|
this->CreateOrGetPBXGroup(cmtarget, sourceGroup);
|
||||||
cmStdString key = GetGroupMapKey(cmtarget, sf);
|
std::string key = GetGroupMapKey(cmtarget, sf);
|
||||||
this->GroupMap[key] = pbxgroup;
|
this->GroupMap[key] = pbxgroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2984,7 +2984,7 @@ void cmGlobalXCodeGenerator::CreateGroups(cmLocalGenerator* root,
|
|||||||
mf->FindSourceGroup(source.c_str(), sourceGroups);
|
mf->FindSourceGroup(source.c_str(), sourceGroups);
|
||||||
cmXCodeObject* pbxgroup =
|
cmXCodeObject* pbxgroup =
|
||||||
this->CreateOrGetPBXGroup(cmtarget, sourceGroup);
|
this->CreateOrGetPBXGroup(cmtarget, sourceGroup);
|
||||||
cmStdString key = GetGroupMapKeyFromPath(cmtarget, source);
|
std::string key = GetGroupMapKeyFromPath(cmtarget, source);
|
||||||
this->GroupMap[key] = pbxgroup;
|
this->GroupMap[key] = pbxgroup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2992,7 +2992,7 @@ void cmGlobalXCodeGenerator::CreateGroups(cmLocalGenerator* root,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmXCodeObject *cmGlobalXCodeGenerator
|
cmXCodeObject *cmGlobalXCodeGenerator
|
||||||
::CreatePBXGroup(cmXCodeObject *parent, cmStdString name)
|
::CreatePBXGroup(cmXCodeObject *parent, std::string name)
|
||||||
{
|
{
|
||||||
cmXCodeObject* parentChildren = NULL;
|
cmXCodeObject* parentChildren = NULL;
|
||||||
if(parent)
|
if(parent)
|
||||||
@ -3016,8 +3016,8 @@ cmXCodeObject *cmGlobalXCodeGenerator
|
|||||||
cmXCodeObject* cmGlobalXCodeGenerator
|
cmXCodeObject* cmGlobalXCodeGenerator
|
||||||
::CreateOrGetPBXGroup(cmTarget& cmtarget, cmSourceGroup* sg)
|
::CreateOrGetPBXGroup(cmTarget& cmtarget, cmSourceGroup* sg)
|
||||||
{
|
{
|
||||||
cmStdString s;
|
std::string s;
|
||||||
cmStdString target;
|
std::string target;
|
||||||
const char *targetFolder= cmtarget.GetProperty("FOLDER");
|
const char *targetFolder= cmtarget.GetProperty("FOLDER");
|
||||||
if(targetFolder) {
|
if(targetFolder) {
|
||||||
target = targetFolder;
|
target = targetFolder;
|
||||||
@ -3026,7 +3026,7 @@ cmXCodeObject* cmGlobalXCodeGenerator
|
|||||||
target += cmtarget.GetName();
|
target += cmtarget.GetName();
|
||||||
s = target + "/";
|
s = target + "/";
|
||||||
s += sg->GetFullName();
|
s += sg->GetFullName();
|
||||||
std::map<cmStdString, cmXCodeObject* >::iterator it =
|
std::map<std::string, cmXCodeObject* >::iterator it =
|
||||||
this->GroupNameMap.find(s);
|
this->GroupNameMap.find(s);
|
||||||
if(it != this->GroupNameMap.end())
|
if(it != this->GroupNameMap.end())
|
||||||
{
|
{
|
||||||
@ -3043,7 +3043,7 @@ cmXCodeObject* cmGlobalXCodeGenerator
|
|||||||
{
|
{
|
||||||
std::vector<std::string> tgt_folders =
|
std::vector<std::string> tgt_folders =
|
||||||
cmSystemTools::tokenize(target, "/");
|
cmSystemTools::tokenize(target, "/");
|
||||||
cmStdString curr_tgt_folder;
|
std::string curr_tgt_folder;
|
||||||
for(std::vector<std::string>::size_type i = 0; i < tgt_folders.size();i++)
|
for(std::vector<std::string>::size_type i = 0; i < tgt_folders.size();i++)
|
||||||
{
|
{
|
||||||
if (i != 0)
|
if (i != 0)
|
||||||
@ -3070,7 +3070,7 @@ cmXCodeObject* cmGlobalXCodeGenerator
|
|||||||
// If it's the default source group (empty name) then put the source file
|
// If it's the default source group (empty name) then put the source file
|
||||||
// directly in the tgroup...
|
// directly in the tgroup...
|
||||||
//
|
//
|
||||||
if (cmStdString(sg->GetFullName()) == "")
|
if (std::string(sg->GetFullName()) == "")
|
||||||
{
|
{
|
||||||
this->GroupNameMap[s] = tgroup;
|
this->GroupNameMap[s] = tgroup;
|
||||||
return tgroup;
|
return tgroup;
|
||||||
@ -3081,12 +3081,12 @@ cmXCodeObject* cmGlobalXCodeGenerator
|
|||||||
{
|
{
|
||||||
std::vector<std::string> folders =
|
std::vector<std::string> folders =
|
||||||
cmSystemTools::tokenize(sg->GetFullName(), "\\");
|
cmSystemTools::tokenize(sg->GetFullName(), "\\");
|
||||||
cmStdString curr_folder = target;
|
std::string curr_folder = target;
|
||||||
curr_folder += "/";
|
curr_folder += "/";
|
||||||
for(std::vector<std::string>::size_type i = 0; i < folders.size();i++)
|
for(std::vector<std::string>::size_type i = 0; i < folders.size();i++)
|
||||||
{
|
{
|
||||||
curr_folder += folders[i];
|
curr_folder += folders[i];
|
||||||
std::map<cmStdString, cmXCodeObject* >::iterator i_folder =
|
std::map<std::string, cmXCodeObject* >::iterator i_folder =
|
||||||
this->GroupNameMap.find(curr_folder);
|
this->GroupNameMap.find(curr_folder);
|
||||||
//Create new folder
|
//Create new folder
|
||||||
if(i_folder == this->GroupNameMap.end())
|
if(i_folder == this->GroupNameMap.end())
|
||||||
@ -3466,14 +3466,14 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget(
|
|||||||
makefileStream
|
makefileStream
|
||||||
<< "# For each target create a dummy rule "
|
<< "# For each target create a dummy rule "
|
||||||
"so the target does not have to exist\n";
|
"so the target does not have to exist\n";
|
||||||
std::set<cmStdString> emitted;
|
std::set<std::string> emitted;
|
||||||
for(std::vector<cmXCodeObject*>::iterator i = targets.begin();
|
for(std::vector<cmXCodeObject*>::iterator i = targets.begin();
|
||||||
i != targets.end(); ++i)
|
i != targets.end(); ++i)
|
||||||
{
|
{
|
||||||
cmXCodeObject* target = *i;
|
cmXCodeObject* target = *i;
|
||||||
std::map<cmStdString, cmXCodeObject::StringVec> const& deplibs =
|
std::map<std::string, cmXCodeObject::StringVec> const& deplibs =
|
||||||
target->GetDependLibraries();
|
target->GetDependLibraries();
|
||||||
for(std::map<cmStdString, cmXCodeObject::StringVec>::const_iterator ci
|
for(std::map<std::string, cmXCodeObject::StringVec>::const_iterator ci
|
||||||
= deplibs.begin(); ci != deplibs.end(); ++ci)
|
= deplibs.begin(); ci != deplibs.end(); ++ci)
|
||||||
{
|
{
|
||||||
for(cmXCodeObject::StringVec::const_iterator d = ci->second.begin();
|
for(cmXCodeObject::StringVec::const_iterator d = ci->second.begin();
|
||||||
@ -3529,12 +3529,12 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget(
|
|||||||
std::string trel = this->ConvertToRelativeForMake(tfull.c_str());
|
std::string trel = this->ConvertToRelativeForMake(tfull.c_str());
|
||||||
|
|
||||||
// Add this target to the post-build phases of its dependencies.
|
// Add this target to the post-build phases of its dependencies.
|
||||||
std::map<cmStdString, cmXCodeObject::StringVec>::const_iterator
|
std::map<std::string, cmXCodeObject::StringVec>::const_iterator
|
||||||
y = target->GetDependTargets().find(*ct);
|
y = target->GetDependTargets().find(*ct);
|
||||||
if(y != target->GetDependTargets().end())
|
if(y != target->GetDependTargets().end())
|
||||||
{
|
{
|
||||||
std::vector<cmStdString> const& deptgts = y->second;
|
std::vector<std::string> const& deptgts = y->second;
|
||||||
for(std::vector<cmStdString>::const_iterator d = deptgts.begin();
|
for(std::vector<std::string>::const_iterator d = deptgts.begin();
|
||||||
d != deptgts.end(); ++d)
|
d != deptgts.end(); ++d)
|
||||||
{
|
{
|
||||||
makefileStream << this->PostBuildMakeTarget(*d, *ct) << ": "
|
makefileStream << this->PostBuildMakeTarget(*d, *ct) << ": "
|
||||||
@ -3546,12 +3546,12 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget(
|
|||||||
makefileStream << trel << ":";
|
makefileStream << trel << ":";
|
||||||
|
|
||||||
// List dependencies if any exist.
|
// List dependencies if any exist.
|
||||||
std::map<cmStdString, cmXCodeObject::StringVec>::const_iterator
|
std::map<std::string, cmXCodeObject::StringVec>::const_iterator
|
||||||
x = target->GetDependLibraries().find(*ct);
|
x = target->GetDependLibraries().find(*ct);
|
||||||
if(x != target->GetDependLibraries().end())
|
if(x != target->GetDependLibraries().end())
|
||||||
{
|
{
|
||||||
std::vector<cmStdString> const& deplibs = x->second;
|
std::vector<std::string> const& deplibs = x->second;
|
||||||
for(std::vector<cmStdString>::const_iterator d = deplibs.begin();
|
for(std::vector<std::string>::const_iterator d = deplibs.begin();
|
||||||
d != deplibs.end(); ++d)
|
d != deplibs.end(); ++d)
|
||||||
{
|
{
|
||||||
makefileStream << "\\\n\t" <<
|
makefileStream << "\\\n\t" <<
|
||||||
@ -3960,7 +3960,7 @@ cmGlobalXCodeGenerator
|
|||||||
// names since Xcode names them uniquely automatically with a numeric suffix
|
// names since Xcode names them uniquely automatically with a numeric suffix
|
||||||
// to avoid exact duplicate file names. Note that Mac file names are not
|
// to avoid exact duplicate file names. Note that Mac file names are not
|
||||||
// typically case sensitive, hence the LowerCase.
|
// typically case sensitive, hence the LowerCase.
|
||||||
std::map<cmStdString, int> counts;
|
std::map<std::string, int> counts;
|
||||||
std::vector<cmSourceFile*> objectSources;
|
std::vector<cmSourceFile*> objectSources;
|
||||||
gt->GetObjectSources(objectSources);
|
gt->GetObjectSources(objectSources);
|
||||||
for(std::vector<cmSourceFile*>::const_iterator
|
for(std::vector<cmSourceFile*>::const_iterator
|
||||||
|
@ -95,7 +95,7 @@ private:
|
|||||||
cmXCodeObject* CreateOrGetPBXGroup(cmTarget& cmtarget,
|
cmXCodeObject* CreateOrGetPBXGroup(cmTarget& cmtarget,
|
||||||
cmSourceGroup* sg);
|
cmSourceGroup* sg);
|
||||||
cmXCodeObject* CreatePBXGroup(cmXCodeObject *parent,
|
cmXCodeObject* CreatePBXGroup(cmXCodeObject *parent,
|
||||||
cmStdString name);
|
std::string name);
|
||||||
void CreateGroups(cmLocalGenerator* root,
|
void CreateGroups(cmLocalGenerator* root,
|
||||||
std::vector<cmLocalGenerator*>&
|
std::vector<cmLocalGenerator*>&
|
||||||
generators);
|
generators);
|
||||||
@ -124,7 +124,7 @@ private:
|
|||||||
cmTarget& target,
|
cmTarget& target,
|
||||||
std::vector<cmCustomCommand> const & commands,
|
std::vector<cmCustomCommand> const & commands,
|
||||||
const char* configName,
|
const char* configName,
|
||||||
const std::map<cmStdString, cmStdString>&
|
const std::map<std::string, std::string>&
|
||||||
multipleOutputPairs
|
multipleOutputPairs
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ protected:
|
|||||||
|
|
||||||
unsigned int XcodeVersion;
|
unsigned int XcodeVersion;
|
||||||
std::string VersionString;
|
std::string VersionString;
|
||||||
std::set<cmStdString> XCodeObjectIDs;
|
std::set<std::string> XCodeObjectIDs;
|
||||||
std::vector<cmXCodeObject*> XCodeObjects;
|
std::vector<cmXCodeObject*> XCodeObjects;
|
||||||
cmXCodeObject* RootObject;
|
cmXCodeObject* RootObject;
|
||||||
private:
|
private:
|
||||||
@ -236,14 +236,14 @@ private:
|
|||||||
std::string CurrentReRunCMakeMakefile;
|
std::string CurrentReRunCMakeMakefile;
|
||||||
std::string CurrentXCodeHackMakefile;
|
std::string CurrentXCodeHackMakefile;
|
||||||
std::string CurrentProject;
|
std::string CurrentProject;
|
||||||
std::set<cmStdString> TargetDoneSet;
|
std::set<std::string> TargetDoneSet;
|
||||||
std::vector<std::string> CurrentOutputDirectoryComponents;
|
std::vector<std::string> CurrentOutputDirectoryComponents;
|
||||||
std::vector<std::string> ProjectSourceDirectoryComponents;
|
std::vector<std::string> ProjectSourceDirectoryComponents;
|
||||||
std::vector<std::string> ProjectOutputDirectoryComponents;
|
std::vector<std::string> ProjectOutputDirectoryComponents;
|
||||||
std::map<cmStdString, cmXCodeObject* > GroupMap;
|
std::map<std::string, cmXCodeObject* > GroupMap;
|
||||||
std::map<cmStdString, cmXCodeObject* > GroupNameMap;
|
std::map<std::string, cmXCodeObject* > GroupNameMap;
|
||||||
std::map<cmStdString, cmXCodeObject* > TargetGroup;
|
std::map<std::string, cmXCodeObject* > TargetGroup;
|
||||||
std::map<cmStdString, cmXCodeObject* > FileRefs;
|
std::map<std::string, cmXCodeObject* > FileRefs;
|
||||||
std::vector<std::string> Architectures;
|
std::vector<std::string> Architectures;
|
||||||
std::string PlatformToolset;
|
std::string PlatformToolset;
|
||||||
};
|
};
|
||||||
|
@ -121,7 +121,7 @@ void cmGraphVizWriter::ReadSettings(const char* settingsFileName,
|
|||||||
__set_bool_if_set(this->GeneratePerTarget, "GRAPHVIZ_GENERATE_PER_TARGET");
|
__set_bool_if_set(this->GeneratePerTarget, "GRAPHVIZ_GENERATE_PER_TARGET");
|
||||||
__set_bool_if_set(this->GenerateDependers, "GRAPHVIZ_GENERATE_DEPENDERS");
|
__set_bool_if_set(this->GenerateDependers, "GRAPHVIZ_GENERATE_DEPENDERS");
|
||||||
|
|
||||||
cmStdString ignoreTargetsRegexes;
|
std::string ignoreTargetsRegexes;
|
||||||
__set_if_set(ignoreTargetsRegexes, "GRAPHVIZ_IGNORE_TARGETS");
|
__set_if_set(ignoreTargetsRegexes, "GRAPHVIZ_IGNORE_TARGETS");
|
||||||
|
|
||||||
this->TargetsToIgnoreRegex.clear();
|
this->TargetsToIgnoreRegex.clear();
|
||||||
@ -135,7 +135,7 @@ void cmGraphVizWriter::ReadSettings(const char* settingsFileName,
|
|||||||
itvIt != ignoreTargetsRegExVector.end();
|
itvIt != ignoreTargetsRegExVector.end();
|
||||||
++ itvIt )
|
++ itvIt )
|
||||||
{
|
{
|
||||||
cmStdString currentRegexString(*itvIt);
|
std::string currentRegexString(*itvIt);
|
||||||
cmsys::RegularExpression currentRegex;
|
cmsys::RegularExpression currentRegex;
|
||||||
if (!currentRegex.compile(currentRegexString.c_str()))
|
if (!currentRegex.compile(currentRegexString.c_str()))
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ void cmGraphVizWriter::WriteTargetDependersFiles(const char* fileName)
|
|||||||
|
|
||||||
this->CollectTargetsAndLibs();
|
this->CollectTargetsAndLibs();
|
||||||
|
|
||||||
for(std::map<cmStdString, const cmTarget*>::const_iterator ptrIt =
|
for(std::map<std::string, const cmTarget*>::const_iterator ptrIt =
|
||||||
this->TargetPtrs.begin();
|
this->TargetPtrs.begin();
|
||||||
ptrIt != this->TargetPtrs.end();
|
ptrIt != this->TargetPtrs.end();
|
||||||
++ptrIt)
|
++ptrIt)
|
||||||
@ -211,7 +211,7 @@ void cmGraphVizWriter::WritePerTargetFiles(const char* fileName)
|
|||||||
|
|
||||||
this->CollectTargetsAndLibs();
|
this->CollectTargetsAndLibs();
|
||||||
|
|
||||||
for(std::map<cmStdString, const cmTarget*>::const_iterator ptrIt =
|
for(std::map<std::string, const cmTarget*>::const_iterator ptrIt =
|
||||||
this->TargetPtrs.begin();
|
this->TargetPtrs.begin();
|
||||||
ptrIt != this->TargetPtrs.end();
|
ptrIt != this->TargetPtrs.end();
|
||||||
++ptrIt)
|
++ptrIt)
|
||||||
@ -265,7 +265,7 @@ void cmGraphVizWriter::WriteGlobalFile(const char* fileName)
|
|||||||
std::set<std::string> insertedConnections;
|
std::set<std::string> insertedConnections;
|
||||||
std::set<std::string> insertedNodes;
|
std::set<std::string> insertedNodes;
|
||||||
|
|
||||||
for(std::map<cmStdString, const cmTarget*>::const_iterator ptrIt =
|
for(std::map<std::string, const cmTarget*>::const_iterator ptrIt =
|
||||||
this->TargetPtrs.begin();
|
this->TargetPtrs.begin();
|
||||||
ptrIt != this->TargetPtrs.end();
|
ptrIt != this->TargetPtrs.end();
|
||||||
++ptrIt)
|
++ptrIt)
|
||||||
@ -305,7 +305,7 @@ void cmGraphVizWriter::WriteConnections(const std::string& targetName,
|
|||||||
std::set<std::string>& insertedConnections,
|
std::set<std::string>& insertedConnections,
|
||||||
cmGeneratedFileStream& str) const
|
cmGeneratedFileStream& str) const
|
||||||
{
|
{
|
||||||
std::map<cmStdString, const cmTarget* >::const_iterator targetPtrIt =
|
std::map<std::string, const cmTarget* >::const_iterator targetPtrIt =
|
||||||
this->TargetPtrs.find(targetName);
|
this->TargetPtrs.find(targetName);
|
||||||
|
|
||||||
if (targetPtrIt == this->TargetPtrs.end()) // not found at all
|
if (targetPtrIt == this->TargetPtrs.end()) // not found at all
|
||||||
@ -331,7 +331,7 @@ void cmGraphVizWriter::WriteConnections(const std::string& targetName,
|
|||||||
++ llit )
|
++ llit )
|
||||||
{
|
{
|
||||||
const char* libName = llit->first.c_str();
|
const char* libName = llit->first.c_str();
|
||||||
std::map<cmStdString, cmStdString>::const_iterator libNameIt =
|
std::map<std::string, std::string>::const_iterator libNameIt =
|
||||||
this->TargetNamesNodes.find(libName);
|
this->TargetNamesNodes.find(libName);
|
||||||
|
|
||||||
// can happen e.g. if GRAPHVIZ_TARGET_IGNORE_REGEX is used
|
// can happen e.g. if GRAPHVIZ_TARGET_IGNORE_REGEX is used
|
||||||
@ -364,7 +364,7 @@ void cmGraphVizWriter::WriteDependerConnections(const std::string& targetName,
|
|||||||
std::set<std::string>& insertedConnections,
|
std::set<std::string>& insertedConnections,
|
||||||
cmGeneratedFileStream& str) const
|
cmGeneratedFileStream& str) const
|
||||||
{
|
{
|
||||||
std::map<cmStdString, const cmTarget* >::const_iterator targetPtrIt =
|
std::map<std::string, const cmTarget* >::const_iterator targetPtrIt =
|
||||||
this->TargetPtrs.find(targetName);
|
this->TargetPtrs.find(targetName);
|
||||||
|
|
||||||
if (targetPtrIt == this->TargetPtrs.end()) // not found at all
|
if (targetPtrIt == this->TargetPtrs.end()) // not found at all
|
||||||
@ -383,7 +383,7 @@ void cmGraphVizWriter::WriteDependerConnections(const std::string& targetName,
|
|||||||
std::string myNodeName = this->TargetNamesNodes.find(targetName)->second;
|
std::string myNodeName = this->TargetNamesNodes.find(targetName)->second;
|
||||||
|
|
||||||
// now search who links against me
|
// now search who links against me
|
||||||
for(std::map<cmStdString, const cmTarget*>::const_iterator dependerIt =
|
for(std::map<std::string, const cmTarget*>::const_iterator dependerIt =
|
||||||
this->TargetPtrs.begin();
|
this->TargetPtrs.begin();
|
||||||
dependerIt != this->TargetPtrs.end();
|
dependerIt != this->TargetPtrs.end();
|
||||||
++dependerIt)
|
++dependerIt)
|
||||||
@ -411,7 +411,7 @@ void cmGraphVizWriter::WriteDependerConnections(const std::string& targetName,
|
|||||||
if (libName == targetName)
|
if (libName == targetName)
|
||||||
{
|
{
|
||||||
// So this target links against targetName.
|
// So this target links against targetName.
|
||||||
std::map<cmStdString, cmStdString>::const_iterator dependerNodeNameIt =
|
std::map<std::string, std::string>::const_iterator dependerNodeNameIt =
|
||||||
this->TargetNamesNodes.find(dependerIt->first);
|
this->TargetNamesNodes.find(dependerIt->first);
|
||||||
|
|
||||||
if(dependerNodeNameIt != this->TargetNamesNodes.end())
|
if(dependerNodeNameIt != this->TargetNamesNodes.end())
|
||||||
@ -452,7 +452,7 @@ void cmGraphVizWriter::WriteNode(const std::string& targetName,
|
|||||||
if (insertedNodes.find(targetName) == insertedNodes.end())
|
if (insertedNodes.find(targetName) == insertedNodes.end())
|
||||||
{
|
{
|
||||||
insertedNodes.insert(targetName);
|
insertedNodes.insert(targetName);
|
||||||
std::map<cmStdString, cmStdString>::const_iterator nameIt =
|
std::map<std::string, std::string>::const_iterator nameIt =
|
||||||
this->TargetNamesNodes.find(targetName);
|
this->TargetNamesNodes.find(targetName);
|
||||||
|
|
||||||
str << " \"" << nameIt->second.c_str() << "\" [ label=\""
|
str << " \"" << nameIt->second.c_str() << "\" [ label=\""
|
||||||
@ -540,7 +540,7 @@ int cmGraphVizWriter::CollectAllExternalLibs(int cnt)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<cmStdString, const cmTarget*>::const_iterator tarIt =
|
std::map<std::string, const cmTarget*>::const_iterator tarIt =
|
||||||
this->TargetPtrs.find(libName);
|
this->TargetPtrs.find(libName);
|
||||||
if ( tarIt == this->TargetPtrs.end() )
|
if ( tarIt == this->TargetPtrs.end() )
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user