From f60dcda6b6659046994811baeb3689875ec23521 Mon Sep 17 00:00:00 2001 From: dt Date: Thu, 12 Feb 2009 16:09:23 +0100 Subject: Fixes: Adjust the toolchain classes to make them work on windows. --- src/plugins/qt4projectmanager/qt4project.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/plugins/qt4projectmanager/qt4project.cpp') diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index 492dc2c50d..cac25f7566 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:"<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 ("<msvcVersion()<<")"; } else if(t == ToolChain::WINCE) { m_test = ToolChain::createWinCEToolChain(version->msvcVersion(), version->wincePlatform()); + //qDebug()<<"WinCE ToolChain ("<msvcVersion()<<","<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 ("<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()<predefinedMacros(); + //qDebug()<<""; + //qDebug()<<"System Header Paths"; + //foreach(const HeaderPath &hp, tc->systemHeaderPaths()) + // qDebug()<path()); - qDebug()<<"Still existing paths :"< > removeList; foreach (QSharedPointer rc, runConfigurations()) { if (QSharedPointer qt4rc = rc.dynamicCast()) { if (!paths.contains(qt4rc->proFilePath())) { removeList.append(qt4rc); - qDebug()<<"Removing runConfiguration for "<proFilePath(); +// qDebug()<<"Removing runConfiguration for "<proFilePath(); } } } -- cgit v1.2.1