aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt/winrtrunconfiguration.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-01-27 14:28:49 +0100
committerTobias Hunger <tobias.hunger@qt.io>2017-01-30 13:27:16 +0000
commite8b4e180cd0eb3752116284415b327f0946be833 (patch)
treea32b8bcf4c85526e1bf20e552cc40a6388083286 /src/plugins/winrt/winrtrunconfiguration.cpp
parent836252990a2f46b16698b13dd883e841fedd2e37 (diff)
RunConfiguration: Introduce buildSystemTarget()
Introduce a method that maps a RunConfiguration to the build system target that created the executable. Implement the method in all RunConfigurations where that makes sense (e.g. no CustomExecutables). Change-Id: Ifaac859c2cd9b2806a0d7c185b2239312a67752a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/winrt/winrtrunconfiguration.cpp')
-rw-r--r--src/plugins/winrt/winrtrunconfiguration.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/winrt/winrtrunconfiguration.cpp b/src/plugins/winrt/winrtrunconfiguration.cpp
index 1c91142a14..4a29b722e8 100644
--- a/src/plugins/winrt/winrtrunconfiguration.cpp
+++ b/src/plugins/winrt/winrtrunconfiguration.cpp
@@ -32,6 +32,7 @@
#include <projectexplorer/target.h>
#include <projectexplorer/kitinformation.h>
#include <projectexplorer/runconfigurationaspects.h>
+#include <qmakeprojectmanager/qmakeproject.h>
namespace WinRt {
namespace Internal {
@@ -84,5 +85,11 @@ void WinRtRunConfiguration::setUninstallAfterStop(bool b)
emit uninstallAfterStopChanged(m_uninstallAfterStop);
}
+QString WinRtRunConfiguration::buildSystemTarget() const
+{
+ return static_cast<QmakeProjectManager::QmakeProject *>(target()->project())
+ ->mapProFilePathToTarget(Utils::FileName::fromString(m_proFilePath));
+}
+
} // namespace Internal
} // namespace WinRt