summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authordoufu <doufu3344@gmail.com>2023-09-06 03:22:27 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-07 13:03:25 (GMT)
commit7def566e92283e896a9c266f0b9b9b0afabad75e (patch)
tree14c2aee62f9d898ef37e8bc69042335639c8cb59 /Utilities/Release
parent98e1bea3fa9eb303ec38d6c515bd6a75f725083e (diff)
downloadCMake-7def566e92283e896a9c266f0b9b9b0afabad75e.zip
CMake-7def566e92283e896a9c266f0b9b9b0afabad75e.tar.gz
CMake-7def566e92283e896a9c266f0b9b9b0afabad75e.tar.bz2
Utilities/Release: Update to Qt 5.15.10 on windows-{x86_64,i386} builds
Fixes: #25187 Co-authored-by: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Utilities/Release')
-rw-r--r--Utilities/Release/win/qt-5.15.10-win-x86-msvc-install.patch (renamed from Utilities/Release/win/qt-5.12.1-win-x86-msvc-install.patch)20
-rwxr-xr-xUtilities/Release/win/qt-5.15.10-win-x86-msvc.ps1 (renamed from Utilities/Release/win/qt-5.12.1-win-x86-msvc.ps1)17
2 files changed, 20 insertions, 17 deletions
diff --git a/Utilities/Release/win/qt-5.12.1-win-x86-msvc-install.patch b/Utilities/Release/win/qt-5.15.10-win-x86-msvc-install.patch
index 39a649e..de31d52 100644
--- a/Utilities/Release/win/qt-5.12.1-win-x86-msvc-install.patch
+++ b/Utilities/Release/win/qt-5.15.10-win-x86-msvc-install.patch
@@ -1,26 +1,26 @@
diff --git a/lib/cmake/Qt5Core/Qt5CoreConfig.cmake b/lib/cmake/Qt5Core/Qt5CoreConfig.cmake
-index 04ec302..75d5596 100644
+index 5bad1af..25bf3e3 100644
--- a/lib/cmake/Qt5Core/Qt5CoreConfig.cmake
+++ b/lib/cmake/Qt5Core/Qt5CoreConfig.cmake
-@@ -118,7 +118,7 @@ if (NOT TARGET Qt5::Core)
- list(REMOVE_DUPLICATES Qt5Core_COMPILE_DEFINITIONS)
- list(REMOVE_DUPLICATES Qt5Core_EXECUTABLE_COMPILE_FLAGS)
+@@ -264,7 +264,7 @@ if (NOT TARGET Qt5::Core)
+ return()
+ endif()
- set(_Qt5Core_LIB_DEPENDENCIES "")
+ set(_Qt5Core_LIB_DEPENDENCIES "${_qt5Core_install_prefix}/lib/qtpcre2.lib;netapi32.lib;version.lib")
- add_library(Qt5::Core STATIC IMPORTED)
+ if(NOT Qt5_EXCLUDE_STATIC_DEPENDENCIES)
diff --git a/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake b/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake
-index a07b953..2e07371 100644
+index d9966ad..308e4cb 100644
--- a/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake
+++ b/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake
-@@ -118,7 +118,7 @@ if (NOT TARGET Qt5::Widgets)
- list(REMOVE_DUPLICATES Qt5Widgets_COMPILE_DEFINITIONS)
- list(REMOVE_DUPLICATES Qt5Widgets_EXECUTABLE_COMPILE_FLAGS)
+@@ -264,7 +264,7 @@ if (NOT TARGET Qt5::Widgets)
+ return()
+ endif()
- set(_Qt5Widgets_LIB_DEPENDENCIES "Qt5::Gui;Qt5::Core")
+ set(_Qt5Widgets_LIB_DEPENDENCIES "Qt5::Gui;Qt5::Core;dwmapi.lib;uxtheme.lib")
- add_library(Qt5::Widgets STATIC IMPORTED)
+ if(NOT Qt5_EXCLUDE_STATIC_DEPENDENCIES)
diff --git a/Utilities/Release/win/qt-5.12.1-win-x86-msvc.ps1 b/Utilities/Release/win/qt-5.15.10-win-x86-msvc.ps1
index d9e9617..e1d9ad1 100755
--- a/Utilities/Release/win/qt-5.12.1-win-x86-msvc.ps1
+++ b/Utilities/Release/win/qt-5.15.10-win-x86-msvc.ps1
@@ -32,8 +32,8 @@ if ($env:VCToolsVersion -match '^(?<version>[0-9][0-9]\.[0-9])') {
Write-Host "VCToolsVersion env var not set. Run this from a Visual Studio Command Prompt."
}
-$srcname = "qt-everywhere-src-5.12.1"
-$pkgname = "qt-5.12.1-win-$arch-$toolset-1"
+$srcname = "qt-everywhere-src-5.15.10"
+$pkgname = "qt-5.15.10-win-$arch-$toolset-1"
$topdir = $pwd.Path
$srcdir = Join-Path $topdir $srcname
$blddir = Join-Path $topdir "$pkgname-build"
@@ -41,8 +41,9 @@ $prefix = Join-Path $topdir $pkgname
# JOM
if ( -not (Test-Path -Path "jom")) {
- Invoke-WebRequest -Uri "http://download.qt-project.org/official_releases/jom/unstable-jom.zip" -OutFile jom.zip
- if ($(Get-FileHash "jom.zip").Hash -ne '128fdd846fe24f8594eed37d1d8929a0ea78df563537c0c1b1861a635013fff8') {
+ Invoke-WebRequest -Uri "http://download.qt-project.org/official_releases/jom/jom_1_1_4.zip" -OutFile jom.zip
+ if ($(Get-FileHash "jom.zip").Hash -ne 'd533c1ef49214229681e90196ed2094691e8c4a0a0bef0b2c901debcb562682b') {
+ Write-Host "jom hash does not match"
exit 1
}
Expand-Archive -Path jom.zip -DestinationPath jom
@@ -52,8 +53,9 @@ $jom = "$topdir\jom\jom.exe"
# Qt Source
if ( -not (Test-Path -Path $srcdir)) {
- Invoke-WebRequest -Uri "https://download.qt.io/official_releases/qt/5.12/5.12.1/single/qt-everywhere-src-5.12.1.tar.xz" -OutFile qt.tar.xz
- if ($(Get-FileHash "qt.tar.xz").Hash -ne 'caffbd625c7bc10ff8c5c7a27dbc7d84fa4de146975c0e1ffe904b514ccd6da4') {
+ Invoke-WebRequest -Uri "https://download.qt.io/archive/qt/5.15/5.15.10/single/qt-everywhere-opensource-src-5.15.10.tar.xz" -OutFile qt.tar.xz
+ if ($(Get-FileHash "qt.tar.xz").Hash -ne 'b545cb83c60934adc9a6bbd27e2af79e5013de77d46f5b9f5bb2a3c762bf55ca') {
+ Write-Host "qt hash does not match"
exit 1
}
& $cmake -E tar xvf qt.tar.xz
@@ -94,6 +96,7 @@ if ( -not (Test-Path -Path $blddir)) {
-skip qtlocation `
-skip qtmultimedia `
-skip qtsensors `
+ -skip qtserialbus `
-skip qtserialport `
-skip qtsvg `
-skip qtwayland `
@@ -110,7 +113,7 @@ if ( -not (Test-Path -Path $prefix)) {
& $jom install
# Patch the installation.
Set-Location -Path $prefix
- & $git apply -v (Join-Path $PSScriptRoot qt-5.12.1-win-x86-msvc-install.patch)
+ & $git apply -v (Join-Path $PSScriptRoot qt-5.15.10-win-x86-msvc-install.patch)
}
# Package Qt