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:
Daniel Teske
2013-11-06 13:06:10 +01:00
parent f788b7c9fd
commit ae55018548
4 changed files with 7 additions and 3 deletions

View File

@@ -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);