forked from qt-creator/qt-creator
Only build and use MSVC on windows
Reviewed-by: dt
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include "msvctoolchain.h"
|
#include "msvctoolchain.h"
|
||||||
|
|
||||||
#include "msvcparser.h"
|
#include "msvcparser.h"
|
||||||
#include "projectexplorerconstants.h"
|
#include "projectexplorerconstants.h"
|
||||||
#include "headerpath.h"
|
#include "headerpath.h"
|
||||||
@@ -42,9 +43,7 @@
|
|||||||
#include <utils/qtcprocess.h>
|
#include <utils/qtcprocess.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/synchronousprocess.h>
|
#include <utils/synchronousprocess.h>
|
||||||
#ifdef Q_OS_WIN
|
#include <utils/winutils.h>
|
||||||
# include <utils/winutils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
|
@@ -36,7 +36,6 @@
|
|||||||
#include "buildsteplist.h"
|
#include "buildsteplist.h"
|
||||||
#include "deployconfiguration.h"
|
#include "deployconfiguration.h"
|
||||||
#include "gcctoolchainfactories.h"
|
#include "gcctoolchainfactories.h"
|
||||||
#include "msvctoolchain.h"
|
|
||||||
#include "project.h"
|
#include "project.h"
|
||||||
#include "projectexplorersettings.h"
|
#include "projectexplorersettings.h"
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
@@ -86,6 +85,10 @@
|
|||||||
#include "publishing/ipublishingwizardfactory.h"
|
#include "publishing/ipublishingwizardfactory.h"
|
||||||
#include "publishing/publishingwizardselectiondialog.h"
|
#include "publishing/publishingwizardselectiondialog.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
# include "msvctoolchain.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/filemanager.h>
|
#include <coreplugin/filemanager.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
@@ -288,12 +291,12 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
addObject(this);
|
addObject(this);
|
||||||
|
|
||||||
// Add ToolChainFactories:
|
// Add ToolChainFactories:
|
||||||
#ifndef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
addAutoReleasedObject(new Internal::GccToolChainFactory);
|
|
||||||
addAutoReleasedObject(new Internal::LinuxIccToolChainFactory);
|
|
||||||
#else
|
|
||||||
addAutoReleasedObject(new Internal::MingwToolChainFactory);
|
addAutoReleasedObject(new Internal::MingwToolChainFactory);
|
||||||
addAutoReleasedObject(new Internal::MsvcToolChainFactory);
|
addAutoReleasedObject(new Internal::MsvcToolChainFactory);
|
||||||
|
#else
|
||||||
|
addAutoReleasedObject(new Internal::GccToolChainFactory);
|
||||||
|
addAutoReleasedObject(new Internal::LinuxIccToolChainFactory);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
d->m_toolChainManager = new ToolChainManager(this);
|
d->m_toolChainManager = new ToolChainManager(this);
|
||||||
|
@@ -12,7 +12,6 @@ INCLUDEPATH += $$PWD/../../libs/utils
|
|||||||
HEADERS += projectexplorer.h \
|
HEADERS += projectexplorer.h \
|
||||||
abi.h \
|
abi.h \
|
||||||
gcctoolchain.h \
|
gcctoolchain.h \
|
||||||
msvctoolchain.h \
|
|
||||||
projectexplorer_export.h \
|
projectexplorer_export.h \
|
||||||
projectwindow.h \
|
projectwindow.h \
|
||||||
buildmanager.h \
|
buildmanager.h \
|
||||||
@@ -79,7 +78,6 @@ HEADERS += projectexplorer.h \
|
|||||||
userfileaccessor.h \
|
userfileaccessor.h \
|
||||||
cesdkhandler.h \
|
cesdkhandler.h \
|
||||||
gccparser.h \
|
gccparser.h \
|
||||||
msvcparser.h \
|
|
||||||
filewatcher.h \
|
filewatcher.h \
|
||||||
debugginghelper.h \
|
debugginghelper.h \
|
||||||
projectexplorersettingspage.h \
|
projectexplorersettingspage.h \
|
||||||
@@ -112,7 +110,6 @@ HEADERS += projectexplorer.h \
|
|||||||
SOURCES += projectexplorer.cpp \
|
SOURCES += projectexplorer.cpp \
|
||||||
abi.cpp \
|
abi.cpp \
|
||||||
gcctoolchain.cpp \
|
gcctoolchain.cpp \
|
||||||
msvctoolchain.cpp \
|
|
||||||
projectwindow.cpp \
|
projectwindow.cpp \
|
||||||
buildmanager.cpp \
|
buildmanager.cpp \
|
||||||
buildsteplist.cpp \
|
buildsteplist.cpp \
|
||||||
@@ -172,7 +169,6 @@ SOURCES += projectexplorer.cpp \
|
|||||||
cesdkhandler.cpp \
|
cesdkhandler.cpp \
|
||||||
userfileaccessor.cpp \
|
userfileaccessor.cpp \
|
||||||
gccparser.cpp \
|
gccparser.cpp \
|
||||||
msvcparser.cpp \
|
|
||||||
filewatcher.cpp \
|
filewatcher.cpp \
|
||||||
debugginghelper.cpp \
|
debugginghelper.cpp \
|
||||||
projectexplorersettingspage.cpp \
|
projectexplorersettingspage.cpp \
|
||||||
@@ -219,8 +215,12 @@ equals(TEST, 1) {
|
|||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
SOURCES += applicationlauncher_win.cpp \
|
SOURCES += applicationlauncher_win.cpp \
|
||||||
winguiprocess.cpp
|
winguiprocess.cpp \
|
||||||
HEADERS += winguiprocess.h
|
msvcparser.cpp \
|
||||||
|
msvctoolchain.cpp
|
||||||
|
HEADERS += winguiprocess.h \
|
||||||
|
msvcparser.h \
|
||||||
|
msvctoolchain.h
|
||||||
} else {
|
} else {
|
||||||
SOURCES += applicationlauncher_x11.cpp
|
SOURCES += applicationlauncher_x11.cpp
|
||||||
macx:LIBS += -framework Carbon
|
macx:LIBS += -framework Carbon
|
||||||
|
Reference in New Issue
Block a user