From 9aea8a6e9119f7150cdbcbf9a391c1f2ecba10cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simo=20F=C3=A4lt?= Date: Wed, 1 Dec 2021 10:06:44 +0200 Subject: [PATCH] Provisioning: Install static openssl libs for windows Change-Id: I79d050887f780e4e9e5a29ee5d89316f4a0cb0e3 Reviewed-by: Heikki Halmet --- coin/provisioning/common/windows/openssl.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) 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