WinRT: specify argument for winrtrunner

Starting with Windows 10 the application manifest does not specify the
target device anymore. Hence winrtrunner cannot automatically detect which
profile to use.

Instead, use the device information from the kit and explicitly set it as
additional arguments.

Change-Id: Id2f747a270620b6a6e7d0ae578adfc4373d80266
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
This commit is contained in:
Maurice Kalinowski
2015-09-16 13:12:35 +02:00
parent 67b208a40f
commit ae09de4340

View File

@@ -218,6 +218,9 @@ void WinRtRunnerHelper::startWinRtRunner(const RunConf &conf)
break; break;
} }
if (m_device->type() == Constants::WINRT_DEVICE_TYPE_LOCAL)
QtcProcess::addArgs(&runnerArgs, QStringLiteral("--profile appx"));
QtcProcess::addArg(&runnerArgs, m_executableFilePath); QtcProcess::addArg(&runnerArgs, m_executableFilePath);
if (!m_arguments.isEmpty()) if (!m_arguments.isEmpty())
QtcProcess::addArgs(&runnerArgs, m_arguments); QtcProcess::addArgs(&runnerArgs, m_arguments);