Commit 1f15995b authored by Joerg Bornemann's avatar Joerg Bornemann

WinRt: add --qmldir option to windeployqt call

Task-number: QTCREATORBUG-11696

Change-Id: Idd2eab5cc31e11320b2ba6cc75ca376d1b3acb5c
Reviewed-by: default avatarOliver Wolff <oliver.wolff@digia.com>
Reviewed-by: default avatarAndrew Knight <andrew.knight@digia.com>
parent 96a3fd53
......@@ -34,8 +34,10 @@
#include <projectexplorer/target.h>
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/buildtargetinfo.h>
#include <utils/qtcprocess.h>
using namespace ProjectExplorer;
using Utils::QtcProcess;
namespace WinRt {
namespace Internal {
......@@ -55,9 +57,14 @@ bool WinRtPackageDeploymentStep::init()
// ### Actually, targetForProject is supposed to return the file path including the file
// extension. Whenever this will eventually work, we have to remove the .exe suffix here.
QString args;
QtcProcess::addArg(&args, QDir::toNativeSeparators(targetPath));
QtcProcess::addArg(&args, QStringLiteral("--qmldir"));
QtcProcess::addArg(&args, QDir::toNativeSeparators(project()->projectDirectory()));
ProcessParameters *params = processParameters();
params->setCommand(QLatin1String("windeployqt.exe"));
params->setArguments(QDir::toNativeSeparators(targetPath));
params->setArguments(args);
params->setEnvironment(target()->activeBuildConfiguration()->environment());
return AbstractProcessStep::init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment