diff options
author | Tobias Hunger <[email protected]> | 2019-12-06 11:29:36 +0100 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2019-12-10 09:16:22 +0000 |
commit | a8b96a824002ecf6161fdc840fa2e51e78f2c5ab (patch) | |
tree | aa68507ab7492f02046bd657c3840619a24c9ce8 /src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | |
parent | 03de3bc602c14822b3b3455f54036eeab2d53580 (diff) |
CMake: More logging of parsing starting/stopped
Change-Id: I52dad9260c21e03add513f7229148635ae76236a
Reviewed-by: Cristian Adam <[email protected]>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index 097c3aa1b78..f0dc48a851b 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -129,6 +129,7 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) return; // not for us... // Build configuration has not changed, but Kit settings might have: // reparse and check the configuration, independent of whether the reader has changed + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to kit being updated"; m_buildDirManager.setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_CHECK_CONFIGURATION); }); @@ -139,6 +140,7 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) // Build configuration has switched: // * Check configuration if reader changes due to it not existing yet:-) // * run cmake without configuration arguments if the reader stays + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to active target changed"; m_buildDirManager .setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_CHECK_CONFIGURATION); @@ -152,6 +154,7 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) // Build configuration has switched: // * Check configuration if reader changes due to it not existing yet:-) // * run cmake without configuration arguments if the reader stays + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to active BC changed"; m_buildDirManager .setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_CHECK_CONFIGURATION); @@ -167,6 +170,7 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) // The environment on our BC has changed: // * Error out if the reader updates, cannot happen since all BCs share a target/kit. // * run cmake without configuration arguments if the reader stays + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to environment change"; m_buildDirManager .setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_CHECK_CONFIGURATION); @@ -179,6 +183,7 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) // * run cmake without configuration arguments if the reader stays // If no configuration exists, then the arguments will get added automatically by // the reader. + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to build directory change"; m_buildDirManager .setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_CHECK_CONFIGURATION); @@ -189,6 +194,7 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) // The CMake configuration has changed on our BC: // * Error out if the reader updates, cannot happen since all BCs share a target/kit. // * run cmake with configuration arguments if the reader stays + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to cmake configuration change"; m_buildDirManager .setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_FORCE_CONFIGURATION); @@ -197,12 +203,14 @@ CMakeBuildSystem::CMakeBuildSystem(CMakeBuildConfiguration *bc) connect(project(), &Project::projectFileIsDirty, this, [this]() { if (m_buildConfiguration->isActive()) { + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to dirty project file"; m_buildDirManager .setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_DEFAULT); } }); + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to initial CMake BuildSystem setup"; m_buildDirManager.setParametersAndRequestParse(BuildDirParameters(m_buildConfiguration), BuildDirManager::REPARSE_CHECK_CONFIGURATION); } @@ -221,8 +229,11 @@ CMakeBuildSystem::~CMakeBuildSystem() void CMakeBuildSystem::triggerParsing() { + qCDebug(cmakeBuildSystemLog) << "Parsing has been triggered"; m_currentGuard = guardParsingRun(); + QTC_CHECK(m_currentGuard.guardsProject()); + if (m_allFiles.isEmpty()) m_buildDirManager.requestFilesystemScan(); @@ -279,6 +290,7 @@ QStringList CMakeBuildSystem::filesGeneratedFrom(const QString &sourceFile) cons void CMakeBuildSystem::runCMake() { BuildDirParameters parameters(m_buildConfiguration); + qCDebug(cmakeBuildSystemLog) << "Requesting parse due \"Run CMake\" command"; m_buildDirManager.setParametersAndRequestParse(parameters, BuildDirManager::REPARSE_CHECK_CONFIGURATION | BuildDirManager::REPARSE_FORCE_CMAKE_RUN @@ -288,6 +300,7 @@ void CMakeBuildSystem::runCMake() void CMakeBuildSystem::runCMakeAndScanProjectTree() { BuildDirParameters parameters(m_buildConfiguration); + qCDebug(cmakeBuildSystemLog) << "Requesting parse due to \"Rescan Project\" command"; m_buildDirManager.setParametersAndRequestParse(parameters, BuildDirManager::REPARSE_CHECK_CONFIGURATION | BuildDirManager::REPARSE_SCAN); |