Provisioning: Install static openssl libs for windows

Change-Id: I79d050887f780e4e9e5a29ee5d89316f4a0cb0e3
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
Simo Fält
2021-12-01 10:06:44 +02:00
parent a57e267dbb
commit 9aea8a6e91

View File

@@ -89,5 +89,16 @@ Set-EnvironmentVariable "OPENSSL_CONF_x86" "$installFolder\bin\openssl.cfg"
Set-EnvironmentVariable "OPENSSL_INCLUDE_x86" "$installFolder\include"
Set-EnvironmentVariable "OPENSSL_LIB_x86" "$installFolder\lib"
# For installer framework we need static OpenSSL .
# For static runtime build we need static only version from openssl libs
$static_lib_url = "http://ci-files01-hki.intra.qt.io/input/openssl/opensslx86_static-1-1.1d.7z"
$static_package = "C:\Windows\Temp\opensslx86_static-1-1.1d.7z"
Download $static_lib_url $static_lib_url $static_package
Extract-7Zip $static_package C:\Utils\
Set-EnvironmentVariable "STATIC_OPENSSL_LIB_x86" "C:\Utils\opensslx86_static\lib"
Set-EnvironmentVariable "STATIC_OPENSSL_INCLUDE_x86" "C:\Utils\opensslx86_static\include"
Remove-Item -Path $static_package
# Store version information to ~/versions.txt, which is used to print version information to provision log.
Write-Output "OpenSSL = $version" >> ~/versions.txt