Remove trailing whitespace and minor formatting changes for the dot-code
Alex
This commit is contained in:
parent
e3c46e648b
commit
f7d56df39e
204
Source/cmake.cxx
204
Source/cmake.cxx
@ -169,7 +169,7 @@ cmake::cmake()
|
|||||||
this->ProgressCallback = 0;
|
this->ProgressCallback = 0;
|
||||||
this->ProgressCallbackClientData = 0;
|
this->ProgressCallbackClientData = 0;
|
||||||
this->ScriptMode = false;
|
this->ScriptMode = false;
|
||||||
|
|
||||||
#ifdef CMAKE_BUILD_WITH_CMAKE
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
this->VariableWatch = new cmVariableWatch;
|
this->VariableWatch = new cmVariableWatch;
|
||||||
this->VariableWatch->AddWatch("CMAKE_WORDS_BIGENDIAN",
|
this->VariableWatch->AddWatch("CMAKE_WORDS_BIGENDIAN",
|
||||||
@ -382,7 +382,7 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args)
|
|||||||
this->DoSuppressDevWarnings = true;
|
this->DoSuppressDevWarnings = true;
|
||||||
}
|
}
|
||||||
else if(arg.find("-Wdev",0) == 0)
|
else if(arg.find("-Wdev",0) == 0)
|
||||||
{
|
{
|
||||||
this->SuppressDevWarnings = false;
|
this->SuppressDevWarnings = false;
|
||||||
this->DoSuppressDevWarnings = true;
|
this->DoSuppressDevWarnings = true;
|
||||||
}
|
}
|
||||||
@ -406,7 +406,7 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args)
|
|||||||
cmsys::Glob::PatternToRegex(entryPattern.c_str(), true, true).c_str());
|
cmsys::Glob::PatternToRegex(entryPattern.c_str(), true, true).c_str());
|
||||||
//go through all cache entries and collect the vars which will be removed
|
//go through all cache entries and collect the vars which will be removed
|
||||||
std::vector<std::string> entriesToDelete;
|
std::vector<std::string> entriesToDelete;
|
||||||
cmCacheManager::CacheIterator it =
|
cmCacheManager::CacheIterator it =
|
||||||
this->CacheManager->GetCacheIterator();
|
this->CacheManager->GetCacheIterator();
|
||||||
for ( it.Begin(); !it.IsAtEnd(); it.Next() )
|
for ( it.Begin(); !it.IsAtEnd(); it.Next() )
|
||||||
{
|
{
|
||||||
@ -422,8 +422,8 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// now remove them from the cache
|
// now remove them from the cache
|
||||||
for(std::vector<std::string>::const_iterator currentEntry =
|
for(std::vector<std::string>::const_iterator currentEntry =
|
||||||
entriesToDelete.begin();
|
entriesToDelete.begin();
|
||||||
currentEntry != entriesToDelete.end();
|
currentEntry != entriesToDelete.end();
|
||||||
++currentEntry)
|
++currentEntry)
|
||||||
{
|
{
|
||||||
@ -791,7 +791,7 @@ int cmake::AddCMakePaths()
|
|||||||
cMakeSelf += "/cmake";
|
cMakeSelf += "/cmake";
|
||||||
std::cerr << cMakeSelf.c_str() << "\n";
|
std::cerr << cMakeSelf.c_str() << "\n";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(!cmSystemTools::FileExists(cMakeSelf.c_str()))
|
if(!cmSystemTools::FileExists(cMakeSelf.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("CMake executable cannot be found at ",
|
cmSystemTools::Error("CMake executable cannot be found at ",
|
||||||
@ -802,12 +802,12 @@ int cmake::AddCMakePaths()
|
|||||||
this->CacheManager->AddCacheEntry
|
this->CacheManager->AddCacheEntry
|
||||||
("CMAKE_COMMAND",cMakeSelf.c_str(), "Path to CMake executable.",
|
("CMAKE_COMMAND",cMakeSelf.c_str(), "Path to CMake executable.",
|
||||||
cmCacheManager::INTERNAL);
|
cmCacheManager::INTERNAL);
|
||||||
// if the edit command is not yet in the cache,
|
// if the edit command is not yet in the cache,
|
||||||
// or if CMakeEditCommand has been set on this object,
|
// or if CMakeEditCommand has been set on this object,
|
||||||
// then set the CMAKE_EDIT_COMMAND in the cache
|
// then set the CMAKE_EDIT_COMMAND in the cache
|
||||||
// This will mean that the last gui to edit the cache
|
// This will mean that the last gui to edit the cache
|
||||||
// will be the one that make edit_cache uses.
|
// will be the one that make edit_cache uses.
|
||||||
if(!this->GetCacheDefinition("CMAKE_EDIT_COMMAND")
|
if(!this->GetCacheDefinition("CMAKE_EDIT_COMMAND")
|
||||||
|| !this->CMakeEditCommand.empty())
|
|| !this->CMakeEditCommand.empty())
|
||||||
{
|
{
|
||||||
// Find and save the command to edit the cache
|
// Find and save the command to edit the cache
|
||||||
@ -815,8 +815,8 @@ int cmake::AddCMakePaths()
|
|||||||
if(!this->CMakeEditCommand.empty())
|
if(!this->CMakeEditCommand.empty())
|
||||||
{
|
{
|
||||||
editCacheCommand = cmSystemTools::GetFilenamePath(cMakeSelf)
|
editCacheCommand = cmSystemTools::GetFilenamePath(cMakeSelf)
|
||||||
+ std::string("/")
|
+ std::string("/")
|
||||||
+ this->CMakeEditCommand
|
+ this->CMakeEditCommand
|
||||||
+ cmSystemTools::GetFilenameExtension(cMakeSelf);
|
+ cmSystemTools::GetFilenameExtension(cMakeSelf);
|
||||||
}
|
}
|
||||||
if( !cmSystemTools::FileExists(editCacheCommand.c_str()))
|
if( !cmSystemTools::FileExists(editCacheCommand.c_str()))
|
||||||
@ -936,7 +936,7 @@ void CMakeCommandUsage(const char* program)
|
|||||||
errorStream
|
errorStream
|
||||||
<< "cmake bootstrap\n";
|
<< "cmake bootstrap\n";
|
||||||
#endif
|
#endif
|
||||||
// If you add new commands, change here,
|
// If you add new commands, change here,
|
||||||
// and in cmakemain.cxx in the options table
|
// and in cmakemain.cxx in the options table
|
||||||
errorStream
|
errorStream
|
||||||
<< "Usage: " << program << " -E [command] [arguments ...]\n"
|
<< "Usage: " << program << " -E [command] [arguments ...]\n"
|
||||||
@ -1091,7 +1091,7 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
else if (args[1] == "make_directory" && args.size() == 3)
|
else if (args[1] == "make_directory" && args.size() == 3)
|
||||||
{
|
{
|
||||||
if(!cmSystemTools::MakeDirectory(args[2].c_str()))
|
if(!cmSystemTools::MakeDirectory(args[2].c_str()))
|
||||||
@ -1342,7 +1342,7 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Command to create a symbolic link. Fails on platforms not
|
// Command to create a symbolic link. Fails on platforms not
|
||||||
// supporting them.
|
// supporting them.
|
||||||
else if (args[1] == "create_symlink" && args.size() == 4)
|
else if (args[1] == "create_symlink" && args.size() == 4)
|
||||||
@ -1410,7 +1410,7 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
|||||||
// Use the make system's VERBOSE environment variable to enable
|
// Use the make system's VERBOSE environment variable to enable
|
||||||
// verbose output. This can be skipped by also setting CMAKE_NO_VERBOSE
|
// verbose output. This can be skipped by also setting CMAKE_NO_VERBOSE
|
||||||
// (which is set by the Eclipse and KDevelop generators).
|
// (which is set by the Eclipse and KDevelop generators).
|
||||||
bool verbose = ((cmSystemTools::GetEnv("VERBOSE") != 0)
|
bool verbose = ((cmSystemTools::GetEnv("VERBOSE") != 0)
|
||||||
&& (cmSystemTools::GetEnv("CMAKE_NO_VERBOSE") == 0));
|
&& (cmSystemTools::GetEnv("CMAKE_NO_VERBOSE") == 0));
|
||||||
|
|
||||||
// Create a cmake object instance to process dependencies.
|
// Create a cmake object instance to process dependencies.
|
||||||
@ -1635,14 +1635,14 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmake::AddExtraGenerator(const char* name,
|
void cmake::AddExtraGenerator(const char* name,
|
||||||
CreateExtraGeneratorFunctionType newFunction)
|
CreateExtraGeneratorFunctionType newFunction)
|
||||||
{
|
{
|
||||||
cmExternalMakefileProjectGenerator* extraGenerator = newFunction();
|
cmExternalMakefileProjectGenerator* extraGenerator = newFunction();
|
||||||
const std::vector<std::string>& supportedGlobalGenerators =
|
const std::vector<std::string>& supportedGlobalGenerators =
|
||||||
extraGenerator->GetSupportedGlobalGenerators();
|
extraGenerator->GetSupportedGlobalGenerators();
|
||||||
|
|
||||||
for(std::vector<std::string>::const_iterator
|
for(std::vector<std::string>::const_iterator
|
||||||
it = supportedGlobalGenerators.begin();
|
it = supportedGlobalGenerators.begin();
|
||||||
it != supportedGlobalGenerators.end();
|
it != supportedGlobalGenerators.end();
|
||||||
++it )
|
++it )
|
||||||
@ -1670,11 +1670,11 @@ void cmake::AddDefaultExtraGenerators()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CMAKE_USE_KDEVELOP
|
#ifdef CMAKE_USE_KDEVELOP
|
||||||
this->AddExtraGenerator(cmGlobalKdevelopGenerator::GetActualName(),
|
this->AddExtraGenerator(cmGlobalKdevelopGenerator::GetActualName(),
|
||||||
&cmGlobalKdevelopGenerator::New);
|
&cmGlobalKdevelopGenerator::New);
|
||||||
// for kdevelop also add the generator with just the name of the
|
// for kdevelop also add the generator with just the name of the
|
||||||
// extra generator, since it was this way since cmake 2.2
|
// extra generator, since it was this way since cmake 2.2
|
||||||
this->ExtraGenerators[cmGlobalKdevelopGenerator::GetActualName()]
|
this->ExtraGenerators[cmGlobalKdevelopGenerator::GetActualName()]
|
||||||
= &cmGlobalKdevelopGenerator::New;
|
= &cmGlobalKdevelopGenerator::New;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1690,7 +1690,7 @@ void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
|
|||||||
{
|
{
|
||||||
names.push_back(i->first);
|
names.push_back(i->first);
|
||||||
}
|
}
|
||||||
for(RegisteredExtraGeneratorsMap::const_iterator
|
for(RegisteredExtraGeneratorsMap::const_iterator
|
||||||
i = this->ExtraGenerators.begin();
|
i = this->ExtraGenerators.begin();
|
||||||
i != this->ExtraGenerators.end(); ++i)
|
i != this->ExtraGenerators.end(); ++i)
|
||||||
{
|
{
|
||||||
@ -1828,7 +1828,7 @@ int cmake::DoPreConfigureChecks()
|
|||||||
// do a sanity check on some values
|
// do a sanity check on some values
|
||||||
if(this->CacheManager->GetCacheValue("CMAKE_HOME_DIRECTORY"))
|
if(this->CacheManager->GetCacheValue("CMAKE_HOME_DIRECTORY"))
|
||||||
{
|
{
|
||||||
std::string cacheStart =
|
std::string cacheStart =
|
||||||
this->CacheManager->GetCacheValue("CMAKE_HOME_DIRECTORY");
|
this->CacheManager->GetCacheValue("CMAKE_HOME_DIRECTORY");
|
||||||
cacheStart += "/CMakeLists.txt";
|
cacheStart += "/CMakeLists.txt";
|
||||||
std::string currentStart = this->GetHomeDirectory();
|
std::string currentStart = this->GetHomeDirectory();
|
||||||
@ -1872,13 +1872,13 @@ int cmake::HandleDeleteCacheVariables(const char* var)
|
|||||||
cmCacheManager::CacheIterator ci = this->CacheManager->NewIterator();
|
cmCacheManager::CacheIterator ci = this->CacheManager->NewIterator();
|
||||||
std::vector<SaveCacheEntry> saved;
|
std::vector<SaveCacheEntry> saved;
|
||||||
cmOStringStream warning;
|
cmOStringStream warning;
|
||||||
warning
|
warning
|
||||||
<< "You have changed variables that require your cache to be deleted.\n"
|
<< "You have changed variables that require your cache to be deleted.\n"
|
||||||
<< "Configure will be re-run and you may have to reset some variables.\n"
|
<< "Configure will be re-run and you may have to reset some variables.\n"
|
||||||
<< "The following variables have changed:\n";
|
<< "The following variables have changed:\n";
|
||||||
for(std::vector<std::string>::iterator i = argsSplit.begin();
|
for(std::vector<std::string>::iterator i = argsSplit.begin();
|
||||||
i != argsSplit.end(); ++i)
|
i != argsSplit.end(); ++i)
|
||||||
{
|
{
|
||||||
SaveCacheEntry save;
|
SaveCacheEntry save;
|
||||||
save.key = *i;
|
save.key = *i;
|
||||||
warning << *i << "= ";
|
warning << *i << "= ";
|
||||||
@ -1892,7 +1892,7 @@ int cmake::HandleDeleteCacheVariables(const char* var)
|
|||||||
}
|
}
|
||||||
saved.push_back(save);
|
saved.push_back(save);
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the cache
|
// remove the cache
|
||||||
this->CacheManager->DeleteCache(this->GetStartOutputDirectory());
|
this->CacheManager->DeleteCache(this->GetStartOutputDirectory());
|
||||||
// load the empty cache
|
// load the empty cache
|
||||||
@ -1964,7 +1964,7 @@ int cmake::ActualConfigure()
|
|||||||
if ( !res )
|
if ( !res )
|
||||||
{
|
{
|
||||||
this->CacheManager->AddCacheEntry
|
this->CacheManager->AddCacheEntry
|
||||||
("CMAKE_HOME_DIRECTORY",
|
("CMAKE_HOME_DIRECTORY",
|
||||||
this->GetHomeDirectory(),
|
this->GetHomeDirectory(),
|
||||||
"Start directory with the top level CMakeLists.txt file for this "
|
"Start directory with the top level CMakeLists.txt file for this "
|
||||||
"project",
|
"project",
|
||||||
@ -1974,9 +1974,9 @@ int cmake::ActualConfigure()
|
|||||||
// no generator specified on the command line
|
// no generator specified on the command line
|
||||||
if(!this->GlobalGenerator)
|
if(!this->GlobalGenerator)
|
||||||
{
|
{
|
||||||
const char* genName =
|
const char* genName =
|
||||||
this->CacheManager->GetCacheValue("CMAKE_GENERATOR");
|
this->CacheManager->GetCacheValue("CMAKE_GENERATOR");
|
||||||
const char* extraGenName =
|
const char* extraGenName =
|
||||||
this->CacheManager->GetCacheValue("CMAKE_EXTRA_GENERATOR");
|
this->CacheManager->GetCacheValue("CMAKE_EXTRA_GENERATOR");
|
||||||
if(genName)
|
if(genName)
|
||||||
{
|
{
|
||||||
@ -1998,7 +1998,7 @@ int cmake::ActualConfigure()
|
|||||||
this->SetGlobalGenerator(new cmGlobalBorlandMakefileGenerator);
|
this->SetGlobalGenerator(new cmGlobalBorlandMakefileGenerator);
|
||||||
#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(CMAKE_BOOT_MINGW)
|
#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(CMAKE_BOOT_MINGW)
|
||||||
std::string installedCompiler;
|
std::string installedCompiler;
|
||||||
// Try to find the newest VS installed on the computer and
|
// Try to find the newest VS installed on the computer and
|
||||||
// use that as a default if -G is not specified
|
// use that as a default if -G is not specified
|
||||||
std::string vsregBase =
|
std::string vsregBase =
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\";
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\";
|
||||||
@ -2062,11 +2062,11 @@ int cmake::ActualConfigure()
|
|||||||
}
|
}
|
||||||
if(!this->CacheManager->GetCacheValue("CMAKE_GENERATOR"))
|
if(!this->CacheManager->GetCacheValue("CMAKE_GENERATOR"))
|
||||||
{
|
{
|
||||||
this->CacheManager->AddCacheEntry("CMAKE_GENERATOR",
|
this->CacheManager->AddCacheEntry("CMAKE_GENERATOR",
|
||||||
this->GlobalGenerator->GetName(),
|
this->GlobalGenerator->GetName(),
|
||||||
"Name of generator.",
|
"Name of generator.",
|
||||||
cmCacheManager::INTERNAL);
|
cmCacheManager::INTERNAL);
|
||||||
this->CacheManager->AddCacheEntry("CMAKE_EXTRA_GENERATOR",
|
this->CacheManager->AddCacheEntry("CMAKE_EXTRA_GENERATOR",
|
||||||
this->GlobalGenerator->GetExtraGeneratorName(),
|
this->GlobalGenerator->GetExtraGeneratorName(),
|
||||||
"Name of external makefile project generator.",
|
"Name of external makefile project generator.",
|
||||||
cmCacheManager::INTERNAL);
|
cmCacheManager::INTERNAL);
|
||||||
@ -2205,7 +2205,7 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
|
|||||||
|
|
||||||
// set the cmake command
|
// set the cmake command
|
||||||
this->CMakeCommand = args[0];
|
this->CMakeCommand = args[0];
|
||||||
|
|
||||||
if ( !this->ScriptMode )
|
if ( !this->ScriptMode )
|
||||||
{
|
{
|
||||||
// load the cache
|
// load the cache
|
||||||
@ -2330,7 +2330,7 @@ void cmake::AddCacheEntry(const char* key, const char* value,
|
|||||||
const char* helpString,
|
const char* helpString,
|
||||||
int type)
|
int type)
|
||||||
{
|
{
|
||||||
this->CacheManager->AddCacheEntry(key, value,
|
this->CacheManager->AddCacheEntry(key, value,
|
||||||
helpString,
|
helpString,
|
||||||
cmCacheManager::CacheEntryType(type));
|
cmCacheManager::CacheEntryType(type));
|
||||||
}
|
}
|
||||||
@ -2445,8 +2445,8 @@ void cmake::UpdateProgress(const char *msg, float prog)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmake::GetCommandDocumentation(std::vector<cmDocumentationEntry>& v,
|
void cmake::GetCommandDocumentation(std::vector<cmDocumentationEntry>& v,
|
||||||
bool withCurrentCommands,
|
bool withCurrentCommands,
|
||||||
bool withCompatCommands) const
|
bool withCompatCommands) const
|
||||||
{
|
{
|
||||||
for(RegisteredCommandsMap::const_iterator j = this->Commands.begin();
|
for(RegisteredCommandsMap::const_iterator j = this->Commands.begin();
|
||||||
@ -2457,7 +2457,7 @@ void cmake::GetCommandDocumentation(std::vector<cmDocumentationEntry>& v,
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmDocumentationEntry e((*j).second->GetName(),
|
cmDocumentationEntry e((*j).second->GetName(),
|
||||||
(*j).second->GetTerseDocumentation(),
|
(*j).second->GetTerseDocumentation(),
|
||||||
(*j).second->GetFullDocumentation());
|
(*j).second->GetFullDocumentation());
|
||||||
@ -2493,7 +2493,7 @@ void cmake::GetGeneratorDocumentation(std::vector<cmDocumentationEntry>& v)
|
|||||||
delete generator;
|
delete generator;
|
||||||
v.push_back(e);
|
v.push_back(e);
|
||||||
}
|
}
|
||||||
for(RegisteredExtraGeneratorsMap::const_iterator
|
for(RegisteredExtraGeneratorsMap::const_iterator
|
||||||
i = this->ExtraGenerators.begin(); i != this->ExtraGenerators.end(); ++i)
|
i = this->ExtraGenerators.begin(); i != this->ExtraGenerators.end(); ++i)
|
||||||
{
|
{
|
||||||
cmDocumentationEntry e;
|
cmDocumentationEntry e;
|
||||||
@ -2508,7 +2508,7 @@ void cmake::GetGeneratorDocumentation(std::vector<cmDocumentationEntry>& v)
|
|||||||
void cmake::UpdateConversionPathTable()
|
void cmake::UpdateConversionPathTable()
|
||||||
{
|
{
|
||||||
// Update the path conversion table with any specified file:
|
// Update the path conversion table with any specified file:
|
||||||
const char* tablepath =
|
const char* tablepath =
|
||||||
this->CacheManager->GetCacheValue("CMAKE_PATH_TRANSLATION_FILE");
|
this->CacheManager->GetCacheValue("CMAKE_PATH_TRANSLATION_FILE");
|
||||||
|
|
||||||
if(tablepath)
|
if(tablepath)
|
||||||
@ -2540,7 +2540,7 @@ int cmake::CheckBuildSystem()
|
|||||||
// the make system's VERBOSE environment variable to enable verbose
|
// the make system's VERBOSE environment variable to enable verbose
|
||||||
// output. This can be skipped by setting CMAKE_NO_VERBOSE (which is set
|
// output. This can be skipped by setting CMAKE_NO_VERBOSE (which is set
|
||||||
// by the Eclipse and KDevelop generators).
|
// by the Eclipse and KDevelop generators).
|
||||||
bool verbose = ((cmSystemTools::GetEnv("VERBOSE") != 0)
|
bool verbose = ((cmSystemTools::GetEnv("VERBOSE") != 0)
|
||||||
&& (cmSystemTools::GetEnv("CMAKE_NO_VERBOSE") == 0));
|
&& (cmSystemTools::GetEnv("CMAKE_NO_VERBOSE") == 0));
|
||||||
|
|
||||||
// This method will check the integrity of the build system if the
|
// This method will check the integrity of the build system if the
|
||||||
@ -2549,7 +2549,7 @@ int cmake::CheckBuildSystem()
|
|||||||
|
|
||||||
// If no file is provided for the check, we have to rerun.
|
// If no file is provided for the check, we have to rerun.
|
||||||
if(this->CheckBuildSystemArgument.size() == 0)
|
if(this->CheckBuildSystemArgument.size() == 0)
|
||||||
{
|
{
|
||||||
if(verbose)
|
if(verbose)
|
||||||
{
|
{
|
||||||
cmOStringStream msg;
|
cmOStringStream msg;
|
||||||
@ -2565,7 +2565,7 @@ int cmake::CheckBuildSystem()
|
|||||||
if(verbose)
|
if(verbose)
|
||||||
{
|
{
|
||||||
cmOStringStream msg;
|
cmOStringStream msg;
|
||||||
msg << "Re-run cmake missing file: "
|
msg << "Re-run cmake missing file: "
|
||||||
<< this->CheckBuildSystemArgument.c_str() << "\n";
|
<< this->CheckBuildSystemArgument.c_str() << "\n";
|
||||||
cmSystemTools::Stdout(msg.str().c_str());
|
cmSystemTools::Stdout(msg.str().c_str());
|
||||||
}
|
}
|
||||||
@ -2585,7 +2585,7 @@ int cmake::CheckBuildSystem()
|
|||||||
if(verbose)
|
if(verbose)
|
||||||
{
|
{
|
||||||
cmOStringStream msg;
|
cmOStringStream msg;
|
||||||
msg << "Re-run cmake error reading : "
|
msg << "Re-run cmake error reading : "
|
||||||
<< this->CheckBuildSystemArgument.c_str() << "\n";
|
<< this->CheckBuildSystemArgument.c_str() << "\n";
|
||||||
cmSystemTools::Stdout(msg.str().c_str());
|
cmSystemTools::Stdout(msg.str().c_str());
|
||||||
}
|
}
|
||||||
@ -2902,7 +2902,7 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
str << graphHeader << std::endl;
|
str << graphHeader << std::endl;
|
||||||
|
|
||||||
const cmGlobalGenerator* gg = this->GetGlobalGenerator();
|
const cmGlobalGenerator* gg = this->GetGlobalGenerator();
|
||||||
const std::vector<cmLocalGenerator*>& localGenerators =
|
const std::vector<cmLocalGenerator*>& localGenerators =
|
||||||
gg->GetLocalGenerators();
|
gg->GetLocalGenerators();
|
||||||
std::vector<cmLocalGenerator*>::const_iterator lit;
|
std::vector<cmLocalGenerator*>::const_iterator lit;
|
||||||
// for target deps
|
// for target deps
|
||||||
@ -2917,8 +2917,9 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
for ( lit = localGenerators.begin(); lit != localGenerators.end(); ++ lit )
|
for ( lit = localGenerators.begin(); lit != localGenerators.end(); ++ lit )
|
||||||
{
|
{
|
||||||
const cmTargets* targets = &((*lit)->GetMakefile()->GetTargets());
|
const cmTargets* targets = &((*lit)->GetMakefile()->GetTargets());
|
||||||
cmTargets::const_iterator tit;
|
for ( cmTargets::const_iterator tit = targets->begin();
|
||||||
for ( tit = targets->begin(); tit != targets->end(); ++ tit )
|
tit != targets->end();
|
||||||
|
++ tit )
|
||||||
{
|
{
|
||||||
const char* realTargetName = tit->first.c_str();
|
const char* realTargetName = tit->first.c_str();
|
||||||
if ( ignoreTargetsSet.find(realTargetName) != ignoreTargetsSet.end() )
|
if ( ignoreTargetsSet.find(realTargetName) != ignoreTargetsSet.end() )
|
||||||
@ -2933,16 +2934,17 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
targetPtrs[realTargetName] = &tit->second;
|
targetPtrs[realTargetName] = &tit->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ok, now find all the stuff we link to that is not in cmake
|
// Ok, now find all the stuff we link to that is not in cmake
|
||||||
for ( lit = localGenerators.begin(); lit != localGenerators.end(); ++ lit )
|
for ( lit = localGenerators.begin(); lit != localGenerators.end(); ++ lit )
|
||||||
{
|
{
|
||||||
const cmTargets* targets = &((*lit)->GetMakefile()->GetTargets());
|
const cmTargets* targets = &((*lit)->GetMakefile()->GetTargets());
|
||||||
cmTargets::const_iterator tit;
|
for ( cmTargets::const_iterator tit = targets->begin();
|
||||||
for ( tit = targets->begin(); tit != targets->end(); ++ tit )
|
tit != targets->end();
|
||||||
|
++ tit )
|
||||||
{
|
{
|
||||||
const cmTarget::LinkLibraryVectorType* ll
|
const cmTarget::LinkLibraryVectorType* ll =
|
||||||
= &(tit->second.GetOriginalLinkLibraries());
|
&(tit->second.GetOriginalLinkLibraries());
|
||||||
cmTarget::LinkLibraryVectorType::const_iterator llit;
|
|
||||||
const char* realTargetName = tit->first.c_str();
|
const char* realTargetName = tit->first.c_str();
|
||||||
if ( ignoreTargetsSet.find(realTargetName) != ignoreTargetsSet.end() )
|
if ( ignoreTargetsSet.find(realTargetName) != ignoreTargetsSet.end() )
|
||||||
{
|
{
|
||||||
@ -2953,11 +2955,13 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
{
|
{
|
||||||
targetDeps[realTargetName] = 1;
|
targetDeps[realTargetName] = 1;
|
||||||
}
|
}
|
||||||
for ( llit = ll->begin(); llit != ll->end(); ++ llit )
|
for (cmTarget::LinkLibraryVectorType::const_iterator llit = ll->begin();
|
||||||
|
llit != ll->end();
|
||||||
|
++ llit )
|
||||||
{
|
{
|
||||||
const char* libName = llit->first.c_str();
|
const char* libName = llit->first.c_str();
|
||||||
std::map<cmStdString, cmStdString>::const_iterator tarIt
|
std::map<cmStdString, cmStdString>::const_iterator tarIt =
|
||||||
= targetNamesNodes.find(libName);
|
targetNamesNodes.find(libName);
|
||||||
if ( ignoreTargetsSet.find(libName) != ignoreTargetsSet.end() )
|
if ( ignoreTargetsSet.find(libName) != ignoreTargetsSet.end() )
|
||||||
{
|
{
|
||||||
// Skip ignored targets
|
// Skip ignored targets
|
||||||
@ -2986,31 +2990,34 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write out nodes
|
// Write out nodes
|
||||||
std::map<cmStdString, int>::const_iterator depIt;
|
for(std::map<cmStdString, int>::const_iterator depIt = targetDeps.begin();
|
||||||
for ( depIt = targetDeps.begin(); depIt != targetDeps.end(); ++ depIt )
|
depIt != targetDeps.end();
|
||||||
|
++ depIt )
|
||||||
{
|
{
|
||||||
const char* newTargetName = depIt->first.c_str();
|
const char* newTargetName = depIt->first.c_str();
|
||||||
std::map<cmStdString, cmStdString>::const_iterator tarIt
|
std::map<cmStdString, cmStdString>::const_iterator tarIt =
|
||||||
= targetNamesNodes.find(newTargetName);
|
targetNamesNodes.find(newTargetName);
|
||||||
if ( tarIt == targetNamesNodes.end() )
|
if ( tarIt == targetNamesNodes.end() )
|
||||||
{
|
{
|
||||||
// We should not be here.
|
// We should not be here.
|
||||||
std::cout << __LINE__ << " Cannot find library: " << newTargetName
|
std::cout << __LINE__ << " Cannot find library: " << newTargetName
|
||||||
<< " even though it was added in the previous pass" << std::endl;
|
<< " even though it was added in the previous pass"
|
||||||
|
<< std::endl;
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
str << " \"" << tarIt->second.c_str() << "\" [ label=\""
|
str << " \"" << tarIt->second.c_str() << "\" [ label=\""
|
||||||
<< newTargetName << "\" shape=\"";
|
<< newTargetName << "\" shape=\"";
|
||||||
if ( depIt->second == 1 )
|
if ( depIt->second == 1 )
|
||||||
{
|
{
|
||||||
std::map<cmStdString, const cmTarget*>::const_iterator tarTypeIt =
|
std::map<cmStdString, const cmTarget*>::const_iterator tarTypeIt =
|
||||||
targetPtrs.find(newTargetName);
|
targetPtrs.find(newTargetName);
|
||||||
if ( tarTypeIt == targetPtrs.end() )
|
if ( tarTypeIt == targetPtrs.end() )
|
||||||
{
|
{
|
||||||
// We should not be here.
|
// We should not be here.
|
||||||
std::cout << __LINE__ << " Cannot find library: " << newTargetName
|
std::cout << __LINE__ << " Cannot find library: " << newTargetName
|
||||||
<< " even though it was added in the previous pass" << std::endl;
|
<< " even though it was added in the previous pass"
|
||||||
|
<< std::endl;
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
const cmTarget* tg = tarTypeIt->second;
|
const cmTarget* tg = tarTypeIt->second;
|
||||||
@ -3043,25 +3050,28 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
for ( lit = localGenerators.begin(); lit != localGenerators.end(); ++ lit )
|
for ( lit = localGenerators.begin(); lit != localGenerators.end(); ++ lit )
|
||||||
{
|
{
|
||||||
const cmTargets* targets = &((*lit)->GetMakefile()->GetTargets());
|
const cmTargets* targets = &((*lit)->GetMakefile()->GetTargets());
|
||||||
cmTargets::const_iterator tit;
|
for (cmTargets::const_iterator tit = targets->begin();
|
||||||
for ( tit = targets->begin(); tit != targets->end(); ++ tit )
|
tit != targets->end();
|
||||||
|
++ tit )
|
||||||
{
|
{
|
||||||
std::map<cmStdString, int>::iterator dependIt
|
std::map<cmStdString, int>::iterator dependIt
|
||||||
= targetDeps.find(tit->first.c_str());
|
= targetDeps.find(tit->first.c_str());
|
||||||
if ( dependIt == targetDeps.end() )
|
if ( dependIt == targetDeps.end() )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::map<cmStdString, cmStdString>::iterator cmakeTarIt
|
std::map<cmStdString, cmStdString>::iterator cmakeTarIt =
|
||||||
= targetNamesNodes.find(tit->first.c_str());
|
targetNamesNodes.find(tit->first.c_str());
|
||||||
const cmTarget::LinkLibraryVectorType* ll
|
const cmTarget::LinkLibraryVectorType* ll =
|
||||||
= &(tit->second.GetOriginalLinkLibraries());
|
&(tit->second.GetOriginalLinkLibraries());
|
||||||
cmTarget::LinkLibraryVectorType::const_iterator llit;
|
|
||||||
for ( llit = ll->begin(); llit != ll->end(); ++ llit )
|
for (cmTarget::LinkLibraryVectorType::const_iterator llit = ll->begin();
|
||||||
|
llit != ll->end();
|
||||||
|
++ llit )
|
||||||
{
|
{
|
||||||
const char* libName = llit->first.c_str();
|
const char* libName = llit->first.c_str();
|
||||||
std::map<cmStdString, cmStdString>::const_iterator tarIt
|
std::map<cmStdString, cmStdString>::const_iterator tarIt =
|
||||||
= targetNamesNodes.find(libName);
|
targetNamesNodes.find(libName);
|
||||||
if ( tarIt == targetNamesNodes.end() )
|
if ( tarIt == targetNamesNodes.end() )
|
||||||
{
|
{
|
||||||
// We should not be here.
|
// We should not be here.
|
||||||
@ -3070,7 +3080,7 @@ void cmake::GenerateGraphViz(const char* fileName) const
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
str << " \"" << cmakeTarIt->second.c_str() << "\" -> \""
|
str << " \"" << cmakeTarIt->second.c_str() << "\" -> \""
|
||||||
<< tarIt->second.c_str() << "\"" << std::endl;
|
<< tarIt->second.c_str() << "\"" << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3336,7 +3346,7 @@ int cmake::ExecuteLinkScript(std::vector<std::string>& args)
|
|||||||
void cmake::DefineProperties(cmake *cm)
|
void cmake::DefineProperties(cmake *cm)
|
||||||
{
|
{
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("REPORT_UNDEFINED_PROPERTIES", cmProperty::GLOBAL,
|
("REPORT_UNDEFINED_PROPERTIES", cmProperty::GLOBAL,
|
||||||
"If set, report any undefined properties to this file.",
|
"If set, report any undefined properties to this file.",
|
||||||
"If this property is set to a filename then when CMake runs "
|
"If this property is set to a filename then when CMake runs "
|
||||||
"it will report any properties or variables that were accessed "
|
"it will report any properties or variables that were accessed "
|
||||||
@ -3344,7 +3354,7 @@ void cmake::DefineProperties(cmake *cm)
|
|||||||
);
|
);
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("TARGET_SUPPORTS_SHARED_LIBS", cmProperty::GLOBAL,
|
("TARGET_SUPPORTS_SHARED_LIBS", cmProperty::GLOBAL,
|
||||||
"Does the target platform support shared libraries.",
|
"Does the target platform support shared libraries.",
|
||||||
"TARGET_SUPPORTS_SHARED_LIBS is a boolean specifying whether the target "
|
"TARGET_SUPPORTS_SHARED_LIBS is a boolean specifying whether the target "
|
||||||
"platform supports shared libraries. Basically all current general "
|
"platform supports shared libraries. Basically all current general "
|
||||||
@ -3381,7 +3391,7 @@ void cmake::DefineProperties(cmake *cm)
|
|||||||
"this list.This property is used by the macros in FeatureSummary.cmake.");
|
"this list.This property is used by the macros in FeatureSummary.cmake.");
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("DISABLED_FEATURES", cmProperty::GLOBAL,
|
("DISABLED_FEATURES", cmProperty::GLOBAL,
|
||||||
"List of features which are disabled during the CMake run.",
|
"List of features which are disabled during the CMake run.",
|
||||||
"List of features which are disabled during the CMake run. Be default "
|
"List of features which are disabled during the CMake run. Be default "
|
||||||
"it contains the names of all packages which were not found. This is "
|
"it contains the names of all packages which were not found. This is "
|
||||||
"determined using the <NAME>_FOUND variables. Packages which are "
|
"determined using the <NAME>_FOUND variables. Packages which are "
|
||||||
@ -3531,13 +3541,13 @@ void cmake::DefineProperty(const char *name, cmProperty::ScopeType scope,
|
|||||||
bool chained, const char *docSection)
|
bool chained, const char *docSection)
|
||||||
{
|
{
|
||||||
this->PropertyDefinitions[scope].DefineProperty(name,scope,ShortDescription,
|
this->PropertyDefinitions[scope].DefineProperty(name,scope,ShortDescription,
|
||||||
FullDescription,
|
FullDescription,
|
||||||
docSection,
|
docSection,
|
||||||
chained);
|
chained);
|
||||||
}
|
}
|
||||||
|
|
||||||
cmPropertyDefinition *cmake
|
cmPropertyDefinition *cmake
|
||||||
::GetPropertyDefinition(const char *name,
|
::GetPropertyDefinition(const char *name,
|
||||||
cmProperty::ScopeType scope)
|
cmProperty::ScopeType scope)
|
||||||
{
|
{
|
||||||
if (this->IsPropertyDefined(name,scope))
|
if (this->IsPropertyDefined(name,scope))
|
||||||
@ -3547,7 +3557,7 @@ cmPropertyDefinition *cmake
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmake::RecordPropertyAccess(const char *name,
|
void cmake::RecordPropertyAccess(const char *name,
|
||||||
cmProperty::ScopeType scope)
|
cmProperty::ScopeType scope)
|
||||||
{
|
{
|
||||||
this->AccessedProperties.insert
|
this->AccessedProperties.insert
|
||||||
@ -3619,13 +3629,13 @@ void cmake::ReportUndefinedPropertyAccesses(const char *filename)
|
|||||||
{
|
{
|
||||||
if (!this->IsPropertyDefined(ap->first.c_str(),ap->second) &&
|
if (!this->IsPropertyDefined(ap->first.c_str(),ap->second) &&
|
||||||
aliasedProperties.find(std::pair<cmStdString,cmProperty::ScopeType>
|
aliasedProperties.find(std::pair<cmStdString,cmProperty::ScopeType>
|
||||||
(ap->first,ap->second)) ==
|
(ap->first,ap->second)) ==
|
||||||
aliasedProperties.end())
|
aliasedProperties.end())
|
||||||
{
|
{
|
||||||
const char *scopeStr = "";
|
const char *scopeStr = "";
|
||||||
switch (ap->second)
|
switch (ap->second)
|
||||||
{
|
{
|
||||||
case cmProperty::TARGET:
|
case cmProperty::TARGET:
|
||||||
scopeStr = "TARGET";
|
scopeStr = "TARGET";
|
||||||
break;
|
break;
|
||||||
case cmProperty::SOURCE_FILE:
|
case cmProperty::SOURCE_FILE:
|
||||||
@ -3727,7 +3737,7 @@ const char *cmake::GetProperty(const char* prop, cmProperty::ScopeType scope)
|
|||||||
}
|
}
|
||||||
else if ( propname == "COMMANDS" )
|
else if ( propname == "COMMANDS" )
|
||||||
{
|
{
|
||||||
cmake::RegisteredCommandsMap::iterator cmds
|
cmake::RegisteredCommandsMap::iterator cmds
|
||||||
= this->GetCommands()->begin();
|
= this->GetCommands()->begin();
|
||||||
for (unsigned int cc=0 ; cmds != this->GetCommands()->end(); ++ cmds )
|
for (unsigned int cc=0 ; cmds != this->GetCommands()->end(); ++ cmds )
|
||||||
{
|
{
|
||||||
@ -3835,14 +3845,14 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
|
|||||||
|
|
||||||
// we have to find the module directory, so we can copy the files
|
// we have to find the module directory, so we can copy the files
|
||||||
this->AddCMakePaths();
|
this->AddCMakePaths();
|
||||||
std::string modulesPath =
|
std::string modulesPath =
|
||||||
this->CacheManager->GetCacheValue("CMAKE_ROOT");
|
this->CacheManager->GetCacheValue("CMAKE_ROOT");
|
||||||
modulesPath += "/Modules";
|
modulesPath += "/Modules";
|
||||||
std::string inFile = modulesPath;
|
std::string inFile = modulesPath;
|
||||||
inFile += "/SystemInformation.cmake";
|
inFile += "/SystemInformation.cmake";
|
||||||
std::string outFile = destPath;
|
std::string outFile = destPath;
|
||||||
outFile += "/CMakeLists.txt";
|
outFile += "/CMakeLists.txt";
|
||||||
|
|
||||||
// Copy file
|
// Copy file
|
||||||
if(!cmSystemTools::cmCopyFile(inFile.c_str(), outFile.c_str()))
|
if(!cmSystemTools::cmCopyFile(inFile.c_str(), outFile.c_str()))
|
||||||
{
|
{
|
||||||
@ -3850,7 +3860,7 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
|
|||||||
<< "\" to \"" << outFile.c_str() << "\".\n";
|
<< "\" to \"" << outFile.c_str() << "\".\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// do we write to a file or to stdout?
|
// do we write to a file or to stdout?
|
||||||
if (resultFile.size() == 0)
|
if (resultFile.size() == 0)
|
||||||
{
|
{
|
||||||
@ -3876,7 +3886,7 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
|
|||||||
|
|
||||||
// change back to the original directory
|
// change back to the original directory
|
||||||
cmSystemTools::ChangeDirectory(cwd.c_str());
|
cmSystemTools::ChangeDirectory(cwd.c_str());
|
||||||
|
|
||||||
// echo results to stdout if needed
|
// echo results to stdout if needed
|
||||||
if (writeToStdout)
|
if (writeToStdout)
|
||||||
{
|
{
|
||||||
@ -3897,7 +3907,7 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
|
|||||||
fclose(fin);
|
fclose(fin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// clean up the directory
|
// clean up the directory
|
||||||
cmSystemTools::RemoveADirectory(destPath.c_str());
|
cmSystemTools::RemoveADirectory(destPath.c_str());
|
||||||
return 0;
|
return 0;
|
||||||
@ -4016,7 +4026,7 @@ int cmake::VisualStudioLink(std::vector<std::string>& args, int type)
|
|||||||
for(std::vector<std::string>::iterator i = args.begin();
|
for(std::vector<std::string>::iterator i = args.begin();
|
||||||
i != args.end(); ++i)
|
i != args.end(); ++i)
|
||||||
{
|
{
|
||||||
// check for nmake temporary files
|
// check for nmake temporary files
|
||||||
if((*i)[0] == '@' && i->find("@CMakeFiles") != 0 )
|
if((*i)[0] == '@' && i->find("@CMakeFiles") != 0 )
|
||||||
{
|
{
|
||||||
std::ifstream fin(i->substr(1).c_str());
|
std::ifstream fin(i->substr(1).c_str());
|
||||||
@ -4069,7 +4079,7 @@ int cmake::VisualStudioLink(std::vector<std::string>& args, int type)
|
|||||||
type, hasManifest, verbose);
|
type, hasManifest, verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmake::ParseVisualStudioLinkCommand(std::vector<std::string>& args,
|
int cmake::ParseVisualStudioLinkCommand(std::vector<std::string>& args,
|
||||||
std::vector<cmStdString>& command,
|
std::vector<cmStdString>& command,
|
||||||
std::string& targetName)
|
std::string& targetName)
|
||||||
{
|
{
|
||||||
@ -4120,7 +4130,7 @@ bool cmake::RunCommand(const char* comment,
|
|||||||
&retCode, 0, false);
|
&retCode, 0, false);
|
||||||
// always print the output of the command, unless
|
// always print the output of the command, unless
|
||||||
// it is the dumb rc command banner, but if the command
|
// it is the dumb rc command banner, but if the command
|
||||||
// returned an error code then print the output anyway as
|
// returned an error code then print the output anyway as
|
||||||
// the banner may be mixed with some other important information.
|
// the banner may be mixed with some other important information.
|
||||||
if(output.find("Resource Compiler Version") == output.npos
|
if(output.find("Resource Compiler Version") == output.npos
|
||||||
|| retCode !=0)
|
|| retCode !=0)
|
||||||
@ -4141,12 +4151,12 @@ bool cmake::RunCommand(const char* comment,
|
|||||||
return retCode == 0;
|
return retCode == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmake::VisualStudioLinkIncremental(std::vector<std::string>& args,
|
int cmake::VisualStudioLinkIncremental(std::vector<std::string>& args,
|
||||||
int type, bool verbose)
|
int type, bool verbose)
|
||||||
{
|
{
|
||||||
// This follows the steps listed here:
|
// This follows the steps listed here:
|
||||||
// http://blogs.msdn.com/zakramer/archive/2006/05/22/603558.aspx
|
// http://blogs.msdn.com/zakramer/archive/2006/05/22/603558.aspx
|
||||||
|
|
||||||
// 1. Compiler compiles the application and generates the *.obj files.
|
// 1. Compiler compiles the application and generates the *.obj files.
|
||||||
// 2. An empty manifest file is generated if this is a clean build and if
|
// 2. An empty manifest file is generated if this is a clean build and if
|
||||||
// not the previous one is reused.
|
// not the previous one is reused.
|
||||||
@ -4158,10 +4168,10 @@ int cmake::VisualStudioLinkIncremental(std::vector<std::string>& args,
|
|||||||
// on.
|
// on.
|
||||||
// 5. The manifest tool (mt.exe) is then used to generate the final
|
// 5. The manifest tool (mt.exe) is then used to generate the final
|
||||||
// manifest.
|
// manifest.
|
||||||
|
|
||||||
// If the final manifest is changed, then 6 and 7 are run, if not
|
// If the final manifest is changed, then 6 and 7 are run, if not
|
||||||
// they are skipped, and it is done.
|
// they are skipped, and it is done.
|
||||||
|
|
||||||
// 6. The resource compiler is invoked one more time.
|
// 6. The resource compiler is invoked one more time.
|
||||||
// 7. Finally, the Linker does another incremental link, but since the
|
// 7. Finally, the Linker does another incremental link, but since the
|
||||||
// only thing that has changed is the *.res file that contains the
|
// only thing that has changed is the *.res file that contains the
|
||||||
@ -4220,7 +4230,7 @@ int cmake::VisualStudioLinkIncremental(std::vector<std::string>& args,
|
|||||||
outputOpt += resourceFile;
|
outputOpt += resourceFile;
|
||||||
rcCommand.push_back(outputOpt);
|
rcCommand.push_back(outputOpt);
|
||||||
rcCommand.push_back(resourceInputFile);
|
rcCommand.push_back(resourceInputFile);
|
||||||
// Run rc command to create resource
|
// Run rc command to create resource
|
||||||
if(!cmake::RunCommand("RC Pass 1", rcCommand, verbose))
|
if(!cmake::RunCommand("RC Pass 1", rcCommand, verbose))
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
@ -4230,7 +4240,7 @@ int cmake::VisualStudioLinkIncremental(std::vector<std::string>& args,
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// create mt command
|
// create mt command
|
||||||
std::string outArg("/out:");
|
std::string outArg("/out:");
|
||||||
outArg+= manifestFile;
|
outArg+= manifestFile;
|
||||||
mtCommand.push_back("/nologo");
|
mtCommand.push_back("/nologo");
|
||||||
@ -4281,7 +4291,7 @@ int cmake::VisualStudioLinkNonIncremental(std::vector<std::string>& args,
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// Run the link command as given
|
// Run the link command as given
|
||||||
linkCommand.push_back("/MANIFEST");
|
linkCommand.push_back("/MANIFEST");
|
||||||
if(!cmake::RunCommand("LINK", linkCommand, verbose))
|
if(!cmake::RunCommand("LINK", linkCommand, verbose))
|
||||||
{
|
{
|
||||||
@ -4472,7 +4482,7 @@ int cmake::Build(const std::string& dir,
|
|||||||
makeProgram = it.GetValue();
|
makeProgram = it.GetValue();
|
||||||
return gen->Build(0, dir.c_str(),
|
return gen->Build(0, dir.c_str(),
|
||||||
projName.c_str(), target.c_str(),
|
projName.c_str(), target.c_str(),
|
||||||
&output,
|
&output,
|
||||||
makeProgram.c_str(),
|
makeProgram.c_str(),
|
||||||
config.c_str(), clean, false, 0, true,
|
config.c_str(), clean, false, 0, true,
|
||||||
0, nativeOptions);
|
0, nativeOptions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user