mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
The `libclang_version` variable is now updated to the current version, 15.0.0, in both "coin/provisioning/common/unix/libclang.sh" and "coin/provisioning/common/windows/libclang.ps1". The naming of the artifacts for the provided library was slightly changed from previous versions. Before, the version number would contain two integers separated by a dot. The generated artifact would be named after this version number, with the dot removed. That is, for example, for version 12.0, a release artifact would be called "libclang-release_120.*". The updated two version uses a three segments version number and, furthermore, the artifacts name do not collapse the separating dots such that a release artifact would be called "libclang-release_15.0.0.*". To support the new naming scheme, some processing was removed from both provisioning scripts. For Windows, the line removing all dots from the `libclang_version` variable was removed. For Unix, the removal of the dots in the `libclang_version` variable when expanding the variable to generate the target urls to retrieve the artifact was removed, using the bare value of the variable itself. For Unix provisioning, the artifacts for some of the platform, namely "CentOS" and "Ubuntu 22.04", are not provided anymore. "CentOS" was replaced by "Rhel8.4" on "gcc10.0", hence the target url for the redhat platform was modified based on the new name. The "Ubuntu 22.04" artifacts were not provided, such that the platform was removed. The sha1 of the target artifacts on both provisioning script was updated for all platforms. Task-number: QTBUG-107199 Pick-to: 6.4 Change-Id: I873680825b0953e897c610fb0b47f3cd90625646 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
71 lines
2.0 KiB
PowerShell
71 lines
2.0 KiB
PowerShell
param(
|
|
[Int32]$archVer=32,
|
|
[string]$toolchain="vs2019",
|
|
[bool]$setDefault=$true
|
|
)
|
|
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
$libclang_version="15.0.0"
|
|
Write-Output "libClang = $libclang_version" >> ~/versions.txt
|
|
|
|
# PySide versions following 5.6 use a C++ parser based on Clang (http://clang.org/).
|
|
# The Clang library (C-bindings), version 3.9 or higher is required for building.
|
|
|
|
# Starting from Qt 5.11 QDoc requires Clang to parse C++
|
|
|
|
$baseDestination = "C:\Utils\libclang-" + $libclang_version + "-" + $toolchain
|
|
|
|
function install() {
|
|
|
|
param(
|
|
[string]$sha1=$1,
|
|
[string]$destination=$2
|
|
)
|
|
|
|
$zip = "c:\users\qt\downloads\libclang.7z"
|
|
|
|
$script:OfficialUrl = "https://download.qt.io/development_releases/prebuilt/libclang/qt/libclang-release_$libclang_version-based-windows-$toolchain`_$archVer.7z"
|
|
$script:CachedUrl = "http://ci-files01-hki.intra.qt.io/input/libclang/qt/libclang-release_$libclang_version-based-windows-$toolchain`_$archVer.7z"
|
|
|
|
Download $OfficialUrl $CachedUrl $zip
|
|
Verify-Checksum $zip $sha1
|
|
Extract-7Zip $zip C:\Utils\
|
|
Rename-Item C:\Utils\libclang $destination
|
|
Remove "$zip"
|
|
}
|
|
|
|
$toolchainSuffix = ""
|
|
|
|
if ( $toolchain -eq "vs2019" ) {
|
|
if ( $archVer -eq 64 ) {
|
|
$sha1 = "e7c2d27f0e99d63e49225cb1be18c76a1e2a124b"
|
|
}
|
|
else {
|
|
$sha1 = ""
|
|
}
|
|
$toolchainSuffix = "msvc"
|
|
}
|
|
|
|
if ( $toolchain -eq "mingw" ) {
|
|
if ( $archVer -eq 64 ) {
|
|
$sha1 = "6c9300051533d5648ffe3e8ae1eb00decae8e6bf"
|
|
}
|
|
else {
|
|
$sha1 = ""
|
|
}
|
|
$toolchainSuffix = "mingw"
|
|
}
|
|
|
|
install $sha1 $baseDestination-$archVer
|
|
|
|
if ( $setDefault ) {
|
|
Set-EnvironmentVariable "LLVM_INSTALL_DIR" ($baseDestination + "-$archVer")
|
|
}
|
|
Set-EnvironmentVariable ("LLVM_INSTALL_DIR_${toolchainSuffix}") ($baseDestination + "-$archVer")
|
|
|
|
if ( $libclang_version -eq "15.0.0" ) {
|
|
# This is a hacked static build of libclang which requires special
|
|
# handling on the qdoc side.
|
|
Set-EnvironmentVariable "QDOC_USE_STATIC_LIBCLANG" "1"
|
|
}
|