win-setup-build-env.ps1 850 B

123456789101112131415161718
  1. # Configure the environment such that borg can be built and run.
  2. # Note that building borg requires OpenSSL which is not available by default.
  3. # Use the win-download-openssl.ps1 script to get correct OpenSSL version.
  4. $opensslPath = Resolve-Path "$PSScriptRoot\..\external\cpython-bin-deps-openssl-bin-1.1.1c\$env:PROCESSOR_ARCHITECTURE"
  5. if(!(Test-Path $opensslPath)) {
  6. Write-Host "OpenSSL not found! Please run win-download-openssl.ps1 and check if your platform is supported."
  7. exit
  8. }
  9. $env:BORG_OPENSSL_PREFIX = $opensslPath
  10. $env:BORG_USE_BUNDLED_B2 = "YES"
  11. $env:BORG_USE_BUNDLED_LZ4 = "YES"
  12. $env:BORG_USE_BUNDLED_ZSTD = "YES"
  13. $env:BORG_USE_BUNDLED_XXHASH = "YES"
  14. Write-Host "Environment configured for borg. The following variables where set:"
  15. Write-Host ( Get-ChildItem Env: | Where-Object { $_.Name.StartsWith("BORG_") } | Out-String )