forked from qt-creator/qt-creator
Android: Fix in source builds with Qt 5.2
Now the build directory is by default android-build, so by default the source and build directory don't clash anymore. Task-number: QTCREATORBUG-10661 Change-Id: I054bd3790f9bc9720536aac301bee192cb9f0429 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "androidpackageinstallationstep.h"
|
||||
#include "androidmanager.h"
|
||||
#include "androidconstants.h"
|
||||
|
||||
#include <projectexplorer/buildsteplist.h>
|
||||
#include <projectexplorer/target.h>
|
||||
@@ -69,7 +70,7 @@ bool AndroidPackageInstallationStep::init()
|
||||
if (m_androidDirectory == ProjectDirectory)
|
||||
dirPath = AndroidManager::dirPath(target()).toString();
|
||||
else
|
||||
dirPath = bc->buildDirectory().appendPath((QLatin1String("android"))).toString();
|
||||
dirPath = bc->buildDirectory().appendPath(QLatin1String(Constants::ANDROID_BUILDDIRECTORY)).toString();
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
if (bc->environment().searchInPath(QLatin1String("sh.exe")).isEmpty())
|
||||
dirPath = QDir::toNativeSeparators(dirPath);
|
||||
|
||||
Reference in New Issue
Block a user