From 74f6051d3106420b7126b8ecdca499f88051e9c4 Mon Sep 17 00:00:00 2001 From: Tommy Vercetti <7903172+tommyvct@users.noreply.github.com> Date: Tue, 8 Nov 2022 03:32:11 -0600 Subject: [PATCH] deps.qt: Add support for Windows ARM64 --- deps.qt/qt6.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deps.qt/qt6.ps1 b/deps.qt/qt6.ps1 index 6cf81c42b..35fbacdd0 100644 --- a/deps.qt/qt6.ps1 +++ b/deps.qt/qt6.ps1 @@ -88,14 +88,20 @@ function Configure { $QtBuildConfiguration = '-release' } - $BuildCommand = "..\..\..\qt6\configure -opensource -confirm-license ${QtBuildConfiguration} -nomake examples -nomake tests -schannel -no-dbus -no-freetype -no-icu -no-openssl -no-feature-androiddeployqt -no-feature-pdf -no-feature-printsupport -no-feature-qmake -no-feature-sql -no-feature-testlib -no-feature-windeployqt -DQT_NO_PDF -prefix ${BuildPath}" + $BuildCommand = "..\..\..\qt6\configure " + + if (${Target} -eq "ARM64") { + $BuildCommand += "-platform win32-msvc -xplatform win32-arm64-msvc -qt-host-path 'C:/Qt/6.3.2/msvc2019_64' " + } + + $BuildCommand += "-opensource -confirm-license ${QtBuildConfiguration} -nomake examples -nomake tests -schannel -no-dbus -no-freetype -no-icu -no-openssl -no-feature-androiddeployqt -no-feature-pdf -no-feature-printsupport -no-feature-qmake -no-feature-sql -no-feature-testlib -no-feature-windeployqt -DQT_NO_PDF -prefix ${BuildPath}" $Params = @{ BasePath = (Get-Location | Convert-Path) BuildPath = "." BuildCommand = "${BuildCommand}" Target = $Target - HostArchitecture = $Target + # HostArchitecture = $Target } Invoke-DevShell @Params