summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2021-12-01 10:06:44 +0200
committerSimo Fält <simo.falt@qt.io>2021-12-08 05:35:07 +0000
commit9aea8a6e9119f7150cdbcbf9a391c1f2ecba10cf (patch)
treee97deb7e361f00a6be20c72079a8a152c01325ff
parenta57e267dbbaf8feac8d05dfe1d4e095b8a5066c1 (diff)
downloadqt5-9aea8a6e9119f7150cdbcbf9a391c1f2ecba10cf.tar.gz
Provisioning: Install static openssl libs for windows
Change-Id: I79d050887f780e4e9e5a29ee5d89316f4a0cb0e3 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
-rw-r--r--coin/provisioning/common/windows/openssl.ps111
1 files changed, 11 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/openssl.ps1 b/coin/provisioning/common/windows/openssl.ps1
index 08f7d60f..9a66b2ee 100644
--- a/coin/provisioning/common/windows/openssl.ps1
+++ b/coin/provisioning/common/windows/openssl.ps1
@@ -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