blob: 91f5ed08cfb30b7962114f94624f0cf5812f3159 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$ErrorActionPreference = 'Stop' # Setting strict mode, similar to 'set -euo pipefail' in bash
. (Join-Path $PSScriptRoot "env.ps1")
Push-Location (Join-Path $BUN_DEPS_DIR 'base64')
try {
Set-Location (mkdir -Force build)
Run cmake @CMAKE_FLAGS -DBASE64_WERROR=0 ..
Run cmake --build . --clean-first --config Release
Copy-Item base64.lib $BUN_DEPS_OUT_DIR
Write-Host "-> base64.lib"
}
finally {
Pop-Location
}
|