diff --git a/src/plugins/projectexplorer/msvctoolchain.cpp b/src/plugins/projectexplorer/msvctoolchain.cpp index bcc1c92039a..e807abb6760 100644 --- a/src/plugins/projectexplorer/msvctoolchain.cpp +++ b/src/plugins/projectexplorer/msvctoolchain.cpp @@ -32,6 +32,7 @@ **************************************************************************/ #include "msvctoolchain.h" + #include "msvcparser.h" #include "projectexplorerconstants.h" #include "headerpath.h" @@ -42,9 +43,7 @@ #include #include #include -#ifdef Q_OS_WIN -# include -#endif +#include #include #include diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 4e69469064c..43fa0add73b 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -36,7 +36,6 @@ #include "buildsteplist.h" #include "deployconfiguration.h" #include "gcctoolchainfactories.h" -#include "msvctoolchain.h" #include "project.h" #include "projectexplorersettings.h" #include "target.h" @@ -86,6 +85,10 @@ #include "publishing/ipublishingwizardfactory.h" #include "publishing/publishingwizardselectiondialog.h" +#ifdef Q_OS_WIN +# include "msvctoolchain.h" +#endif + #include #include #include @@ -288,12 +291,12 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er addObject(this); // Add ToolChainFactories: -#ifndef Q_OS_WIN - addAutoReleasedObject(new Internal::GccToolChainFactory); - addAutoReleasedObject(new Internal::LinuxIccToolChainFactory); -#else +#ifdef Q_OS_WIN addAutoReleasedObject(new Internal::MingwToolChainFactory); addAutoReleasedObject(new Internal::MsvcToolChainFactory); +#else + addAutoReleasedObject(new Internal::GccToolChainFactory); + addAutoReleasedObject(new Internal::LinuxIccToolChainFactory); #endif d->m_toolChainManager = new ToolChainManager(this); diff --git a/src/plugins/projectexplorer/projectexplorer.pro b/src/plugins/projectexplorer/projectexplorer.pro index f4616a76b49..e008145cb90 100644 --- a/src/plugins/projectexplorer/projectexplorer.pro +++ b/src/plugins/projectexplorer/projectexplorer.pro @@ -12,7 +12,6 @@ INCLUDEPATH += $$PWD/../../libs/utils HEADERS += projectexplorer.h \ abi.h \ gcctoolchain.h \ - msvctoolchain.h \ projectexplorer_export.h \ projectwindow.h \ buildmanager.h \ @@ -79,7 +78,6 @@ HEADERS += projectexplorer.h \ userfileaccessor.h \ cesdkhandler.h \ gccparser.h \ - msvcparser.h \ filewatcher.h \ debugginghelper.h \ projectexplorersettingspage.h \ @@ -112,7 +110,6 @@ HEADERS += projectexplorer.h \ SOURCES += projectexplorer.cpp \ abi.cpp \ gcctoolchain.cpp \ - msvctoolchain.cpp \ projectwindow.cpp \ buildmanager.cpp \ buildsteplist.cpp \ @@ -172,7 +169,6 @@ SOURCES += projectexplorer.cpp \ cesdkhandler.cpp \ userfileaccessor.cpp \ gccparser.cpp \ - msvcparser.cpp \ filewatcher.cpp \ debugginghelper.cpp \ projectexplorersettingspage.cpp \ @@ -219,8 +215,12 @@ equals(TEST, 1) { win32 { SOURCES += applicationlauncher_win.cpp \ - winguiprocess.cpp - HEADERS += winguiprocess.h + winguiprocess.cpp \ + msvcparser.cpp \ + msvctoolchain.cpp + HEADERS += winguiprocess.h \ + msvcparser.h \ + msvctoolchain.h } else { SOURCES += applicationlauncher_x11.cpp macx:LIBS += -framework Carbon