forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.4'
Conflicts: qtcreator.pri src/libs/qmljs/qmljscheck.cpp src/plugins/debugger/gdb/gdbengine.cpp src/plugins/debugger/gdb/remotegdbserveradapter.cpp src/plugins/plugins.pro src/plugins/projectexplorer/buildmanager.cpp src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp Change-Id: Id2dcebf95b94dc46c1d85908ba1d1378aaf362ac
This commit is contained in:
@@ -156,7 +156,11 @@ QString QMakeStep::allArguments(bool shorted)
|
||||
arguments << moreArguments();
|
||||
|
||||
QString args = Utils::QtcProcess::joinArgs(arguments);
|
||||
// User arguments
|
||||
Utils::QtcProcess::addArgs(&args, m_userArgs);
|
||||
// moreArgumentsAfter
|
||||
foreach (const QString &arg, moreArgumentsAfter())
|
||||
Utils::QtcProcess::addArg(&args, arg);
|
||||
return args;
|
||||
}
|
||||
|
||||
@@ -194,19 +198,26 @@ QStringList QMakeStep::moreArguments()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return arguments;
|
||||
}
|
||||
|
||||
QStringList QMakeStep::moreArgumentsAfter()
|
||||
{
|
||||
Qt4BuildConfiguration *bc = qt4BuildConfiguration();
|
||||
if (bc->qtVersion() && !bc->qtVersion()->supportsShadowBuilds()) {
|
||||
// We have a target which does not allow shadow building.
|
||||
// But we really don't want to have the build artefacts in the source dir
|
||||
// so we try to hack around it, to make the common cases work.
|
||||
// This is a HACK, remove once the symbian make generator supports
|
||||
// shadow building
|
||||
arguments << QLatin1String("-after")
|
||||
<< QLatin1String("OBJECTS_DIR=obj")
|
||||
<< QLatin1String("MOC_DIR=moc")
|
||||
<< QLatin1String("UI_DIR=ui")
|
||||
<< QLatin1String("RCC_DIR=rcc");
|
||||
return QStringList() << QLatin1String("-after")
|
||||
<< QLatin1String("OBJECTS_DIR=obj")
|
||||
<< QLatin1String("MOC_DIR=moc")
|
||||
<< QLatin1String("UI_DIR=ui")
|
||||
<< QLatin1String("RCC_DIR=rcc");
|
||||
}
|
||||
return arguments;
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
bool QMakeStep::init()
|
||||
@@ -297,7 +308,7 @@ void QMakeStep::run(QFutureInterface<bool> &fi)
|
||||
canContinue = false;
|
||||
}
|
||||
if (!canContinue) {
|
||||
emit addOutput(tr("Configuration is faulty, please check the Build Issues view for details."), BuildStep::MessageOutput);
|
||||
emit addOutput(tr("Configuration is faulty, please check the Issues view for details."), BuildStep::MessageOutput);
|
||||
fi.reportResult(false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user