summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/qt4project.cpp
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-02-13 11:13:26 +0100
committerdt <qtc-committer@nokia.com>2009-02-13 11:13:26 +0100
commite3f748b54f03520bd3c129fad6ec96483c9a6866 (patch)
treeced800400fc50704728861c373cda3e3be40c58a /src/plugins/qt4projectmanager/qt4project.cpp
parentf25638f7f5c49f556cc0cbbdc51ace4898fdae24 (diff)
parentf867061d5b5b5bb440ab42923462518973c73817 (diff)
downloadqt-creator-e3f748b54f03520bd3c129fad6ec96483c9a6866.tar.gz
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
Diffstat (limited to 'src/plugins/qt4projectmanager/qt4project.cpp')
-rw-r--r--src/plugins/qt4projectmanager/qt4project.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp
index 569d2e8282..2922987b10 100644
--- a/src/plugins/qt4projectmanager/qt4project.cpp
+++ b/src/plugins/qt4projectmanager/qt4project.cpp
@@ -404,6 +404,7 @@ void Qt4Project::scheduleUpdateCodeModel()
ProjectExplorer::ToolChain *Qt4Project::toolChain(const QString &buildConfiguration) const
{
+ qDebug()<<"Qt4Project::toolChain() for buildconfiguration:"<<buildConfiguration;
Q_UNUSED(buildConfiguration);
ToolChain *m_test;
QtVersion *version = qtVersion(activeBuildConfiguration());
@@ -415,10 +416,13 @@ ProjectExplorer::ToolChain *Qt4Project::toolChain(const QString &buildConfigurat
qtVersion(activeBuildConfiguration())->addToEnvironment(env);
qmake_cxx = env.searchInPath(qmake_cxx);
m_test = ToolChain::createMinGWToolChain(qmake_cxx, version->mingwDirectory());
+ qDebug()<<"Mingw ToolChain";
} else if(t == ToolChain::MSVC) {
m_test = ToolChain::createMSVCToolChain(version->msvcVersion());
+ //qDebug()<<"MSVC ToolChain ("<<version->msvcVersion()<<")";
} else if(t == ToolChain::WINCE) {
m_test = ToolChain::createWinCEToolChain(version->msvcVersion(), version->wincePlatform());
+ //qDebug()<<"WinCE ToolChain ("<<version->msvcVersion()<<","<<version->wincePlatform()<<")";
} else if(t == ToolChain::GCC || t == ToolChain::LinuxICC) {
QStringList list = rootProjectNode()->variableValue(Internal::CxxCompilerVar);
QString qmake_cxx = list.isEmpty() ? QString::null : list.first();
@@ -426,8 +430,14 @@ ProjectExplorer::ToolChain *Qt4Project::toolChain(const QString &buildConfigurat
qtVersion(activeBuildConfiguration())->addToEnvironment(env);
qmake_cxx = env.searchInPath(qmake_cxx);
m_test = ToolChain::createGccToolChain(qmake_cxx);
+ //qDebug()<<"GCC ToolChain ("<<qmake_cxx<<")";
+ } else {
+ qDebug()<<"Could not detect ToolChain for"<<version->mkspec();
+ qDebug()<<"Qt Creator doesn't know about the system includes, nor the systems defines.";
}
+
+
if (m_test == m_toolChain) {
delete m_test;
} else {
@@ -462,6 +472,12 @@ void Qt4Project::updateCodeModel()
if (tc) {
predefinedMacros = tc->predefinedMacros();
allHeaderPaths = tc->systemHeaderPaths();
+ //qDebug()<<"Predifined Macros";
+ //qDebug()<<tc->predefinedMacros();
+ //qDebug()<<"";
+ //qDebug()<<"System Header Paths";
+ //foreach(const HeaderPath &hp, tc->systemHeaderPaths())
+ // qDebug()<<hp.path();
}
foreach (HeaderPath headerPath, allHeaderPaths) {
if (headerPath.kind() == HeaderPath::FrameworkHeaderPath)
@@ -869,14 +885,14 @@ void Qt4Project::checkForDeletedApplicationProjects()
foreach (Qt4ProFileNode * node, applicationProFiles())
paths.append(node->path());
- qDebug()<<"Still existing paths :"<<paths;
+// qDebug()<<"Still existing paths :"<<paths;
QList<QSharedPointer<Qt4RunConfiguration> > removeList;
foreach (QSharedPointer<RunConfiguration> rc, runConfigurations()) {
if (QSharedPointer<Qt4RunConfiguration> qt4rc = rc.dynamicCast<Qt4RunConfiguration>()) {
if (!paths.contains(qt4rc->proFilePath())) {
removeList.append(qt4rc);
- qDebug()<<"Removing runConfiguration for "<<qt4rc->proFilePath();
+// qDebug()<<"Removing runConfiguration for "<<qt4rc->proFilePath();
}
}
}