mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 01:36:32 +08:00
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>
17 lines
535 B
PowerShell
17 lines
535 B
PowerShell
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."
|
|
}
|