summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-31 10:51:39 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-01-10 11:49:15 (GMT)
commit966be439e07131c3ff84175c1a9e3b6336908d8e (patch)
treeeeb3cc4a17b5eaccb77411131aa2e683363fb582 /Source/cmQtAutoGenerators.cxx
parentde531432887487943dbe4ae5a1bde762d5582e06 (diff)
downloadCMake-966be439e07131c3ff84175c1a9e3b6336908d8e.zip
CMake-966be439e07131c3ff84175c1a9e3b6336908d8e.tar.gz
CMake-966be439e07131c3ff84175c1a9e3b6336908d8e.tar.bz2
AUTOGEN: Generators: Be verbose about skipping files
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx61
1 files changed, 43 insertions, 18 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index c162c87..b323609 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -607,11 +607,20 @@ void cmQtAutoGenerators::ParseContentForUic(
const std::string& absFilename, const std::string& contentsString,
std::map<std::string, std::vector<std::string> >& includedUis)
{
- if (this->UicExecutable.empty() ||
- ListContains(this->SkipUic, absFilename)) {
+ if (this->UicExecutable.empty()) {
+ return;
+ }
+ // Check skip list
+ if (ListContains(this->SkipUic, absFilename)) {
+ if (this->Verbose) {
+ std::ostringstream err;
+ err << "AUTOUIC: Skipping " << absFilename << "\n";
+ this->LogInfo(err.str());
+ }
return;
}
+ // Process
if (this->Verbose) {
std::ostringstream err;
err << "AUTOUIC: Checking " << absFilename << "\n";
@@ -641,11 +650,20 @@ bool cmQtAutoGenerators::ParseContentForMoc(
const std::vector<std::string>& headerExtensions,
std::map<std::string, std::string>& includedMocs, bool relaxed)
{
- if (this->MocExecutable.empty() ||
- ListContains(this->SkipMoc, absFilename)) {
+ if (this->MocExecutable.empty()) {
+ return true;
+ }
+ // Check skip list
+ if (ListContains(this->SkipMoc, absFilename)) {
+ if (this->Verbose) {
+ std::ostringstream err;
+ err << "AUTOMOC: Skipping " << absFilename << "\n";
+ this->LogInfo(err.str());
+ }
return true;
}
+ // Process
if (this->Verbose) {
std::ostringstream err;
err << "AUTOMOC: Checking " << absFilename << "\n";
@@ -872,21 +890,28 @@ void cmQtAutoGenerators::ParseHeaders(
// Parse header content for MOC
if (!this->MocExecutable.empty() &&
- !ListContains(this->SkipMoc, headerName) &&
(includedMocs.find(headerName) == includedMocs.end())) {
-
- if (this->Verbose) {
- std::ostringstream err;
- err << "AUTOMOC: Checking " << headerName << "\n";
- this->LogInfo(err.str());
- }
-
- std::string macroName;
- if (this->requiresMocing(contents, macroName)) {
- notIncludedMocs[headerName] = fpathCheckSum.getPart(headerName) +
- "/moc_" +
- cmsys::SystemTools::GetFilenameWithoutLastExtension(headerName) +
- ".cpp";
+ if (ListContains(this->SkipMoc, headerName)) {
+ // Skip
+ if (this->Verbose) {
+ std::ostringstream err;
+ err << "AUTOMOC: Skipping " << headerName << "\n";
+ this->LogInfo(err.str());
+ }
+ } else {
+ // Process
+ if (this->Verbose) {
+ std::ostringstream err;
+ err << "AUTOMOC: Checking " << headerName << "\n";
+ this->LogInfo(err.str());
+ }
+ std::string macroName;
+ if (this->requiresMocing(contents, macroName)) {
+ notIncludedMocs[headerName] = fpathCheckSum.getPart(headerName) +
+ "/moc_" +
+ cmsys::SystemTools::GetFilenameWithoutLastExtension(headerName) +
+ ".cpp";
+ }
}
}