Files
qt5/coin/provisioning/common/windows/libclang.ps1
Heikki Halmet da53bedd80 Provisioning: Relocate Libclang and correct sha1
Sha1's were changed because Liclang versions were rebuilded.

To prevent this Libclang versions are now copied to ci-files01-hki
which won't be affected if someone will rebuild libclang versions
to download.qt.io. This will also reduce download time

Task-number: QTQAINFRA-2156
Change-Id: I9164441cb876ee687db4878d06ba1c02cde601bb
Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2018-08-16 08:31:07 +00:00

34 lines
1.2 KiB
PowerShell

param([Int32]$archVer=32)
. "$PSScriptRoot\helpers.ps1"
# 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.
Get-Content "$PSScriptRoot\..\shared\sw_versions.txt" | Foreach-Object {
$var = $_.Split('=')
New-Variable -Name $var[0] -Value $var[1]
$libclang_version = $libclang_version -replace '["."]'
}
if ( $archVer -eq 64 ) {
$sha1 = "dc42beb0efff130c4d7dfef3c97adf26f1ab04e0"
$url = "http://ci-files01-hki.intra.qt.io/input/libclang/qt/libclang-release_$libclang_version-windows-vs2015_64.7z"
} else {
$sha1 = "64e826c00ae632fbb28655e6e1fa9194980e1205"
$url = "http://ci-files01-hki.intra.qt.io/input/libclang/qt/libclang-release_$libclang_version-windows-vs2015_32.7z"
}
$zip = "c:\users\qt\downloads\libclang.7z"
$destination = "C:\Utils\libclang-" + $libclang_version
Download $url $url $zip
Verify-Checksum $zip $sha1
Extract-7Zip $zip C:\Utils\
Rename-Item C:\Utils\libclang $destination
Remove-Item -Force -Path $zip
Set-EnvironmentVariable "LLVM_INSTALL_DIR" $destination
Write-Output "libClang = $libclang_version" >> ~/versions.txt