1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00
transmission/release/windows/build-openssl.ps1
Charles Kerr 50dca24f50
refactor: aggregate crypto handles when computing digests (#6662)
* refactor: aggregate per-crypto-pkg fields instead of using inheritance
2024-03-04 16:59:51 -06:00

36 lines
923 B
PowerShell

#!/usr/bin/env pwsh
$global:OpenSslVersion = '3.1.5'
$global:OpenSslDeps = @()
function global:Build-OpenSsl([string] $PrefixDir, [string] $Arch, [string] $DepsPrefixDir) {
$Filename = "openssl-${OpenSslVersion}.tar.gz"
$Url = "https://www.openssl.org/source/${Filename}"
$SourceDir = Invoke-DownloadAndUnpack $Url $Filename
$BuildDir = $SourceDir
$ConfigName = if ($Arch -eq 'x86') { 'VC-WIN32' } else { 'VC-WIN64A' }
$ConfigOptions = @(
"--prefix=${PrefixDir}"
'--api=1.1.0'
$ConfigName
'shared'
'no-capieng'
'no-comp'
'no-deprecated'
'no-dso'
'no-dynamic-engine'
'no-engine'
'no-external-tests'
'no-hw'
'no-stdio'
'no-tests'
)
Push-Location -Path $BuildDir
Invoke-VcEnvCommand perl Configure @ConfigOptions
Invoke-VcEnvCommand jom install_dev
Pop-Location
}