Provisioning: Install debug version of vclibs for UWP usage

RTA relies on the availability of debug vclibs. The frameworks are usually
installed on first usage by Visual Studio, but as we use winrtrunner, we
have to install the packages manually.

Task-number: QTBUG-69809
Change-Id: I66cc4b04062afe634345cddc8ab4d001778274cc
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
Oliver Wolff 2018-08-13 10:18:59 +02:00
parent c00f007d32
commit f8086955b3
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,16 @@
function Install-VCLibsDebug
{
Param (
[string]$Arch
)
$installedPackage = Get-AppxPackage Microsoft.VCLibs.140.00.Debug | Where-Object {$_.Architecture -eq $Arch}
if ($installedPackage) {
Write-Host "Debug VCLibs already installed for $Arch."
return
}
Add-AppxPackage "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\Appx\Debug\$Arch\Microsoft.VCLibs.$Arch.Debug.14.00.appx"
Write-Host "Debug VCLibs successfully installed for $Arch."
}

View File

@ -0,0 +1,3 @@
. "$PSScriptRoot\..\common\windows\vclibs_debug.ps1"
Install-VCLibsDebug X86

View File

@ -0,0 +1,3 @@
. "$PSScriptRoot\..\common\windows\vclibs_debug.ps1"
Install-VCLibsDebug X64