mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
ci: use a pre-built Qt for macOS packages
This commit is contained in:
@@ -6,7 +6,11 @@ set(qt_version_minor "15")
|
||||
set(qt_version_patch "0")
|
||||
# This URL is only visible inside of Kitware's network. Please use your own Qt
|
||||
# Account to obtain these files.
|
||||
set(qt_url_root "https://paraview.org/files/dependencies/internal/qt")
|
||||
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "package")
|
||||
set(qt_url_root "https://cmake.org/files/dependencies")
|
||||
else ()
|
||||
set(qt_url_root "https://paraview.org/files/dependencies/internal/qt")
|
||||
endif ()
|
||||
|
||||
# Determine the ABI to fetch for Qt.
|
||||
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "vs2015")
|
||||
@@ -51,15 +55,21 @@ if (qt_platform STREQUAL "windows_x86")
|
||||
|
||||
set(qt_subdir "${qt_version}/msvc${msvc_year}_64")
|
||||
elseif (qt_platform STREQUAL "mac_x64")
|
||||
set(qt_build_stamp "202005140805")
|
||||
set(qt_file_name_prefix "${qt_version}-0-${qt_build_stamp}")
|
||||
|
||||
foreach (qt_component IN ITEMS qtbase)
|
||||
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "package")
|
||||
list(APPEND qt_files
|
||||
"${qt_file_name_prefix}${qt_component}-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z")
|
||||
endforeach ()
|
||||
"qt-5.6.2-macosx10.7-x86_64.tar.xz")
|
||||
set(qt_subdir "qt-5.6.2-macosx10.7-x86_64")
|
||||
else ()
|
||||
set(qt_build_stamp "202005140805")
|
||||
set(qt_file_name_prefix "${qt_version}-0-${qt_build_stamp}")
|
||||
|
||||
set(qt_subdir "${qt_version}/clang_64")
|
||||
foreach (qt_component IN ITEMS qtbase)
|
||||
list(APPEND qt_files
|
||||
"${qt_file_name_prefix}${qt_component}-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z")
|
||||
endforeach ()
|
||||
|
||||
set(qt_subdir "${qt_version}/clang_64")
|
||||
endif ()
|
||||
else ()
|
||||
message(FATAL_ERROR
|
||||
"Unknown files for ${qt_platform}")
|
||||
@@ -72,7 +82,11 @@ if (NOT qt_subdir)
|
||||
endif ()
|
||||
|
||||
# Build up the path to the file to download.
|
||||
set(qt_url_path "${qt_platform}/desktop/qt5_${qt_version_nodot}/qt.qt5.${qt_version_nodot}.${qt_abi}")
|
||||
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "package")
|
||||
set(qt_url_path "")
|
||||
else ()
|
||||
set(qt_url_path "${qt_platform}/desktop/qt5_${qt_version_nodot}/qt.qt5.${qt_version_nodot}.${qt_abi}")
|
||||
endif ()
|
||||
set(qt_url_prefix "${qt_url_root}/${qt_url_path}")
|
||||
|
||||
# Include the file containing the hashes of the files that matter.
|
||||
|
||||
@@ -9,3 +9,5 @@ set("5.15.0-0-202005150700qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-
|
||||
set("5.15.0-0-202005150700qtwinextras-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86_64.7z_hash" 4bca3a8d8c7611e211a82d86b3396f8a622abe7859d5052452414642ec191844)
|
||||
|
||||
set("5.15.0-0-202005140805qtbase-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z_hash" 04d867c81d2431f288c42c9752642759460b9468477de349368dcc8de0c8ddc4)
|
||||
|
||||
set("qt-5.6.2-macosx10.7-x86_64.tar.xz_hash" 2b60373ea60037ce356d4c9f5a8c1df9854127a2c55118252e1a2f5a5f4e0010)
|
||||
|
||||
Reference in New Issue
Block a user