diff options
author | Heikki Halmet <heikki.halmet@qt.io> | 2017-11-02 16:09:11 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-01-10 07:58:26 +0000 |
commit | 2a28ce864bed677e4ac2477eedf6bee498075d94 (patch) | |
tree | 8fe52c45bc62fd7185fccaa7f4b66baa544fa779 /coin/provisioning/common/windows/libclang.ps1 | |
parent | 52da24b78eaac04b490b1d4a1750515284521423 (diff) | |
download | qt5-2a28ce864bed677e4ac2477eedf6bee498075d94.tar.gz |
Split Common folder based on operating system families
This change will split common folder to four different folders:
Linux, Unix, Windows and MacOS. Each of these folders includes scripts
which are common for their operating system familes
Task-number: QTQAINFRA-1451
Change-Id: Ic93b2183052335dee875d1452b21e38d268b6474
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/libclang.ps1')
-rw-r--r-- | coin/provisioning/common/windows/libclang.ps1 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/libclang.ps1 b/coin/provisioning/common/windows/libclang.ps1 new file mode 100644 index 00000000..9d857051 --- /dev/null +++ b/coin/provisioning/common/windows/libclang.ps1 @@ -0,0 +1,32 @@ +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\..\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 = "https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_$libclang_version-windows-vs2015_64.7z" +} else { + $sha1 = "64e826c00ae632fbb28655e6e1fa9194980e1205" + $url = "https://download.qt.io/development_releases/prebuilt/libclang/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 + +C:\Utils\sevenzip\7z.exe x $zip -oC:\Utils\ +Rename-Item C:\Utils\libclang $destination + +[Environment]::SetEnvironmentVariable("LLVM_INSTALL_DIR", $destination, [EnvironmentVariableTarget]::Machine) +del $zip +echo "libClang = $libclang_version" >> ~/versions.txt |