mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
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:
16
coin/provisioning/common/windows/vclibs_debug.ps1
Normal file
16
coin/provisioning/common/windows/vclibs_debug.ps1
Normal 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."
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
. "$PSScriptRoot\..\common\windows\vclibs_debug.ps1"
|
||||
|
||||
Install-VCLibsDebug X86
|
||||
@@ -0,0 +1,3 @@
|
||||
. "$PSScriptRoot\..\common\windows\vclibs_debug.ps1"
|
||||
|
||||
Install-VCLibsDebug X64
|
||||
Reference in New Issue
Block a user