mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
dx: Fix setup script and contributing docs (#6752)
* Updated Dependencies Script * demo * fix submodule hell!!! * lol * attmept 2 * install nasm in ci * setup sh 1 * yeah * better zlib building * codegen stuff * attempt 2 at bun codegen ci * o * deps improvements * generaet part of compile-cpp-only.ps1 * restore these * good enough for Unix * remove libuv submodule lol * pass over docs
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
$ErrorActionPreference = 'Stop' # Setting strict mode, similar to 'set -euo pipefail' in bash
|
||||
. (Join-Path $PSScriptRoot "env.ps1")
|
||||
$CWD = Get-Location
|
||||
|
||||
$null = mkdir -p $BUN_DEPS_OUT_DIR -Force
|
||||
Set-Location $BUN_DEPS_DIR/boringssl
|
||||
cmake $CMAKE_FLAGS .
|
||||
cmake --build . --target crypto --target ssl --target decrepit --clean-first --config Release
|
||||
Copy-Item crypto/Release/crypto.lib $BUN_DEPS_OUT_DIR
|
||||
Copy-Item ssl/Release/ssl.lib $BUN_DEPS_OUT_DIR
|
||||
Copy-Item decrepit/Release/decrepit.lib $BUN_DEPS_OUT_DIR
|
||||
Push-Location (Join-Path $BUN_DEPS_DIR 'boringssl')
|
||||
try {
|
||||
Set-Location (mkdir -Force build)
|
||||
|
||||
Run cmake @CMAKE_FLAGS ..
|
||||
Run cmake --build . --target crypto --target ssl --target decrepit --clean-first --config Release
|
||||
|
||||
Set-Location $CWD
|
||||
Copy-Item crypto/crypto.lib $BUN_DEPS_OUT_DIR
|
||||
Copy-Item ssl/ssl.lib $BUN_DEPS_OUT_DIR
|
||||
Copy-Item decrepit/decrepit.lib $BUN_DEPS_OUT_DIR
|
||||
Write-Host "-> crypto.lib, ssl.lib, decrepit.lib"
|
||||
} finally { Pop-Location }
|
||||
Reference in New Issue
Block a user