|
@@ -488,7 +488,7 @@ void cmQtAutoGenerators::SetupSourceFiles(cmTarget const* target)
|
|
|
{
|
|
|
cmSourceFile* sf = *fileIt;
|
|
|
std::string absFile = cmsys::SystemTools::GetRealPath(
|
|
|
- sf->GetFullPath().c_str());
|
|
|
+ sf->GetFullPath());
|
|
|
bool skipMoc = cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTOMOC"));
|
|
|
bool generated = cmSystemTools::IsOn(sf->GetPropertyForUser("GENERATED"));
|
|
|
|
|
@@ -766,7 +766,7 @@ void cmQtAutoGenerators::SetupAutoUicTarget(cmTarget const* target,
|
|
|
{
|
|
|
cmSourceFile* sf = *fileIt;
|
|
|
std::string absFile = cmsys::SystemTools::GetRealPath(
|
|
|
- sf->GetFullPath().c_str());
|
|
|
+ sf->GetFullPath());
|
|
|
|
|
|
if (!skipped.insert(absFile).second)
|
|
|
{
|
|
@@ -890,7 +890,7 @@ void cmQtAutoGenerators::SetupAutoRccTarget(cmTarget const* target)
|
|
|
if (ext == "qrc")
|
|
|
{
|
|
|
std::string absFile = cmsys::SystemTools::GetRealPath(
|
|
|
- sf->GetFullPath().c_str());
|
|
|
+ sf->GetFullPath());
|
|
|
bool skip = cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTORCC"));
|
|
|
|
|
|
if (!skip)
|
|
@@ -1013,7 +1013,7 @@ bool cmQtAutoGenerators::ReadAutogenInfoFile(cmMakefile* makefile,
|
|
|
const std::string& config)
|
|
|
{
|
|
|
std::string filename(
|
|
|
- cmSystemTools::CollapseFullPath(targetDirectory.c_str()));
|
|
|
+ cmSystemTools::CollapseFullPath(targetDirectory));
|
|
|
cmSystemTools::ConvertToUnixSlashes(filename);
|
|
|
filename += "/AutogenInfo.cmake";
|
|
|
|
|
@@ -1158,7 +1158,7 @@ bool cmQtAutoGenerators::ReadOldMocDefinitionsFile(cmMakefile* makefile,
|
|
|
const std::string& targetDirectory)
|
|
|
{
|
|
|
std::string filename(
|
|
|
- cmSystemTools::CollapseFullPath(targetDirectory.c_str()));
|
|
|
+ cmSystemTools::CollapseFullPath(targetDirectory));
|
|
|
cmSystemTools::ConvertToUnixSlashes(filename);
|
|
|
filename += "/AutomocOldMocDefinitions.cmake";
|
|
|
|
|
@@ -1176,7 +1176,7 @@ cmQtAutoGenerators::WriteOldMocDefinitionsFile(
|
|
|
const std::string& targetDirectory)
|
|
|
{
|
|
|
std::string filename(
|
|
|
- cmSystemTools::CollapseFullPath(targetDirectory.c_str()));
|
|
|
+ cmSystemTools::CollapseFullPath(targetDirectory));
|
|
|
cmSystemTools::ConvertToUnixSlashes(filename);
|
|
|
filename += "/AutomocOldMocDefinitions.cmake";
|
|
|
|
|
@@ -1222,7 +1222,7 @@ void cmQtAutoGenerators::Init()
|
|
|
{
|
|
|
// Go up twice to get to the framework root
|
|
|
std::vector<std::string> pathComponents;
|
|
|
- cmsys::SystemTools::SplitPath(path.c_str(), pathComponents);
|
|
|
+ cmsys::SystemTools::SplitPath(path, pathComponents);
|
|
|
std::string frameworkPath =cmsys::SystemTools::JoinPath(
|
|
|
pathComponents.begin(), pathComponents.end() - 2);
|
|
|
frameworkPaths.insert(frameworkPath);
|
|
@@ -1484,7 +1484,7 @@ void cmQtAutoGenerators::ParseCppFile(const std::string& absFilename,
|
|
|
}
|
|
|
|
|
|
const std::string absPath = cmsys::SystemTools::GetFilenamePath(
|
|
|
- cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/';
|
|
|
+ cmsys::SystemTools::GetRealPath(absFilename)) + '/';
|
|
|
const std::string scannedFileBasename = cmsys::SystemTools::
|
|
|
GetFilenameWithoutLastExtension(absFilename);
|
|
|
std::string macroName;
|
|
@@ -1672,7 +1672,7 @@ void cmQtAutoGenerators::StrictParseCppFile(const std::string& absFilename,
|
|
|
}
|
|
|
|
|
|
const std::string absPath = cmsys::SystemTools::GetFilenamePath(
|
|
|
- cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/';
|
|
|
+ cmsys::SystemTools::GetRealPath(absFilename)) + '/';
|
|
|
const std::string scannedFileBasename = cmsys::SystemTools::
|
|
|
GetFilenameWithoutLastExtension(absFilename);
|
|
|
|
|
@@ -1802,7 +1802,7 @@ void cmQtAutoGenerators::ParseForUic(const std::string& absFilename,
|
|
|
std::string::size_type matchOffset = 0;
|
|
|
|
|
|
const std::string realName =
|
|
|
- cmsys::SystemTools::GetRealPath(absFilename.c_str());
|
|
|
+ cmsys::SystemTools::GetRealPath(absFilename);
|
|
|
|
|
|
matchOffset = 0;
|
|
|
if ((strstr(contentsString.c_str(), "ui_") != NULL)
|
|
@@ -1836,7 +1836,7 @@ cmQtAutoGenerators::SearchHeadersForCppFile(const std::string& absFilename,
|
|
|
const std::string basename =
|
|
|
cmsys::SystemTools::GetFilenameWithoutLastExtension(absFilename);
|
|
|
const std::string absPath = cmsys::SystemTools::GetFilenamePath(
|
|
|
- cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/';
|
|
|
+ cmsys::SystemTools::GetRealPath(absFilename)) + '/';
|
|
|
|
|
|
for(std::vector<std::string>::const_iterator ext = headerExtensions.begin();
|
|
|
ext != headerExtensions.end();
|
|
@@ -1904,8 +1904,8 @@ bool cmQtAutoGenerators::GenerateMoc(const std::string& sourceFile,
|
|
|
{
|
|
|
const std::string mocFilePath = this->Builddir + mocFileName;
|
|
|
int sourceNewerThanMoc = 0;
|
|
|
- bool success = cmsys::SystemTools::FileTimeCompare(sourceFile.c_str(),
|
|
|
- mocFilePath.c_str(),
|
|
|
+ bool success = cmsys::SystemTools::FileTimeCompare(sourceFile,
|
|
|
+ mocFilePath,
|
|
|
&sourceNewerThanMoc);
|
|
|
if (this->GenerateAll || !success || sourceNewerThanMoc >= 0)
|
|
|
{
|
|
@@ -1968,7 +1968,7 @@ bool cmQtAutoGenerators::GenerateMoc(const std::string& sourceFile,
|
|
|
std::cerr << "AUTOGEN: error: process for " << mocFilePath <<" failed:\n"
|
|
|
<< output << std::endl;
|
|
|
this->RunMocFailed = true;
|
|
|
- cmSystemTools::RemoveFile(mocFilePath.c_str());
|
|
|
+ cmSystemTools::RemoveFile(mocFilePath);
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -1984,14 +1984,14 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& realName,
|
|
|
}
|
|
|
|
|
|
const std::string path = cmsys::SystemTools::GetFilenamePath(
|
|
|
- realName.c_str()) + '/';
|
|
|
+ realName) + '/';
|
|
|
|
|
|
std::string ui_output_file = "ui_" + uiFileName + ".h";
|
|
|
std::string ui_input_file = path + uiFileName + ".ui";
|
|
|
|
|
|
int sourceNewerThanUi = 0;
|
|
|
- bool success = cmsys::SystemTools::FileTimeCompare(ui_input_file.c_str(),
|
|
|
- (this->Builddir + ui_output_file).c_str(),
|
|
|
+ bool success = cmsys::SystemTools::FileTimeCompare(ui_input_file,
|
|
|
+ this->Builddir + ui_output_file,
|
|
|
&sourceNewerThanUi);
|
|
|
if (this->GenerateAll || !success || sourceNewerThanUi >= 0)
|
|
|
{
|
|
@@ -2042,7 +2042,7 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& realName,
|
|
|
std::cerr << "AUTOUIC: error: process for " << ui_output_file <<
|
|
|
" failed:\n" << output << std::endl;
|
|
|
this->RunUicFailed = true;
|
|
|
- cmSystemTools::RemoveFile(ui_output_file.c_str());
|
|
|
+ cmSystemTools::RemoveFile(ui_output_file);
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
@@ -2075,8 +2075,8 @@ bool cmQtAutoGenerators::GenerateQrc()
|
|
|
+ ".dir/qrc_" + basename + ".cpp";
|
|
|
|
|
|
int sourceNewerThanQrc = 0;
|
|
|
- bool success = cmsys::SystemTools::FileTimeCompare(si->c_str(),
|
|
|
- rcc_output_file.c_str(),
|
|
|
+ bool success = cmsys::SystemTools::FileTimeCompare(*si,
|
|
|
+ rcc_output_file,
|
|
|
&sourceNewerThanQrc);
|
|
|
if (this->GenerateAll || !success || sourceNewerThanQrc >= 0)
|
|
|
{
|
|
@@ -2118,7 +2118,7 @@ bool cmQtAutoGenerators::GenerateQrc()
|
|
|
std::cerr << "AUTORCC: error: process for " << rcc_output_file <<
|
|
|
" failed:\n" << output << std::endl;
|
|
|
this->RunRccFailed = true;
|
|
|
- cmSystemTools::RemoveFile(rcc_output_file.c_str());
|
|
|
+ cmSystemTools::RemoveFile(rcc_output_file);
|
|
|
return false;
|
|
|
}
|
|
|
}
|