forked from qt-creator/qt-creator
Android: Create directory for gdbserver
Task-number: QTCREATORBUG-9035 Change-Id: I2b22bebe7340105155b6efd3cb070f1a839a6d3c Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -440,6 +440,8 @@ bool AndroidPackageCreationStep::createPackage()
|
|||||||
QFile::remove(m_gdbServerDestination.toString());
|
QFile::remove(m_gdbServerDestination.toString());
|
||||||
if (m_debugBuild || !m_certificateAlias.length()) {
|
if (m_debugBuild || !m_certificateAlias.length()) {
|
||||||
build << QLatin1String("debug");
|
build << QLatin1String("debug");
|
||||||
|
QDir dir;
|
||||||
|
dir.mkpath(m_gdbServerDestination.toFileInfo().absolutePath());
|
||||||
if (!QFile::copy(m_gdbServerSource.toString(), m_gdbServerDestination.toString())) {
|
if (!QFile::copy(m_gdbServerSource.toString(), m_gdbServerDestination.toString())) {
|
||||||
raiseError(tr("Can't copy gdbserver from '%1' to '%2'").arg(m_gdbServerSource.toUserOutput())
|
raiseError(tr("Can't copy gdbserver from '%1' to '%2'").arg(m_gdbServerSource.toUserOutput())
|
||||||
.arg(m_gdbServerDestination.toUserOutput()));
|
.arg(m_gdbServerDestination.toUserOutput()));
|
||||||
|
Reference in New Issue
Block a user