forked from qt-creator/qt-creator
autotools: Allow builds to be done in buildDir
configure is called using a relative path from buildDir to the project directory and the configure command line is updated to reflect changes to buildDir. Change-Id: Ia9e8eef446efd21b6dcedef4668ff03adfd8a20c Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
600514be2b
commit
0d8dd285b0
@@ -157,7 +157,8 @@ bool AutoreconfStep::init()
|
||||
ProcessParameters *pp = processParameters();
|
||||
pp->setMacroExpander(bc->macroExpander());
|
||||
pp->setEnvironment(bc->environment());
|
||||
pp->setWorkingDirectory(bc->buildDirectory().toString());
|
||||
const QString projectDir(bc->target()->project()->projectDirectory().toString());
|
||||
pp->setWorkingDirectory(projectDir);
|
||||
pp->setCommand(QLatin1String("autoreconf"));
|
||||
pp->setArguments(additionalArguments());
|
||||
pp->resolveAll();
|
||||
@@ -170,8 +171,8 @@ void AutoreconfStep::run(QFutureInterface<bool> &interface)
|
||||
BuildConfiguration *bc = buildConfiguration();
|
||||
|
||||
// Check whether we need to run autoreconf
|
||||
const QString buildDir = bc->buildDirectory().toString();
|
||||
const QFileInfo configureInfo(buildDir + QLatin1String("/configure"));
|
||||
const QString projectDir(bc->target()->project()->projectDirectory().toString());
|
||||
const QFileInfo configureInfo(projectDir + QLatin1String("/configure"));
|
||||
|
||||
if (!configureInfo.exists())
|
||||
m_runAutoreconf = true;
|
||||
@@ -270,7 +271,8 @@ void AutoreconfStepConfigWidget::updateDetails()
|
||||
ProcessParameters param;
|
||||
param.setMacroExpander(bc->macroExpander());
|
||||
param.setEnvironment(bc->environment());
|
||||
param.setWorkingDirectory(bc->buildDirectory().toString());
|
||||
const QString projectDir(bc->target()->project()->projectDirectory().toString());
|
||||
param.setWorkingDirectory(projectDir);
|
||||
param.setCommand(QLatin1String("autoreconf"));
|
||||
param.setArguments(m_autoreconfStep->additionalArguments());
|
||||
m_summaryText = param.summary(displayName());
|
||||
|
||||
Reference in New Issue
Block a user