mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
* init * WIP fix post data/refactor * make it compile again * more things * undo padding and continue + fix posting + update lshpack * re-add fixes * really simple tests + fixes * add aborted event * fix trailers * add getDefaultSettings, getPackedSettings and getUnpackedSettings * fix + fmt * fixes * fix enablePush o be boolean * fix sendTrailers * fmt * fix goaway, fix some error messages * oops * revert some changes * more reverts * WIP * get CMAKE building lspack + ping behavior * remove files that should not be added anymore * remove old out files * remove old file * fix header reduce * bunch of fixes * fix socket unref * fix abort signal, rebase and fmt * socket unref tests * oops re-add cmake * fix stream state * more tests and fixes * fixes and ping tests * lshpack in Dockerfile * just copy lshpack * oops * fix end * wantTrailers * encode/decode fixes + grpc * channel credentials test * rebase * support h2c * fix h2c * fix h2c connect event + h2c tests * 'copy ls-hpack * ls-hpack build sh * oops * changing CMake + Docker * add ps1 build for ls-hpack fix clean * optimizations + fixes * remove protect/unprotect from handlers * more consistent errors * fix error code * oops * add goaway tests * oops uncoment tests * better errors more tests * add broken priority frame * better memory leak, some fixes and less flask tests * zig update .Big -> .big * closer threshold + h2 fix * remove log * test should not be flask * increase timeout on leak memory test * windows build * less flasky * always 127.0.0.1 * [autofix.ci] apply automated fixes * remove .call and use primordials * apply socket fix * fix win-build * should properly mark inactive * postgres fix * increase deadline * test tests * high light deadline timeouts * event loop test * make memory leak test faster * use buffer on payload test * check for socket.data before use * reduce iterations to see if timeout on mac intel * fix assertions * avoid localhost and simplify things * refactor memory leak test * Update src/js/node/tls.js * fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cirospaciari <ciro.spaciai@gmail.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
86 lines
1.9 KiB
PowerShell
86 lines
1.9 KiB
PowerShell
param(
|
|
[Alias("f")][switch]$Force = $false
|
|
)
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
$DidAnything = $false;
|
|
|
|
$BUN_BASE_DIR = if ($env:BUN_BASE_DIR) { $env:BUN_BASE_DIR } else { Join-Path $PSScriptRoot '..' }
|
|
$BUN_DEPS_DIR = if ($env:BUN_DEPS_DIR) { $env:BUN_DEPS_DIR } else { Join-Path $BUN_BASE_DIR 'src\deps' }
|
|
$BUN_DEPS_OUT_DIR = if ($env:BUN_DEPS_OUT_DIR) { $env:BUN_DEPS_OUT_DIR } else { $BUN_DEPS_DIR }
|
|
|
|
function Build-Dependency {
|
|
param(
|
|
$Script,
|
|
[string[]]$Outputs
|
|
)
|
|
|
|
$ScriptPath = Join-Path $PSScriptRoot "build-$Script.ps1"
|
|
|
|
if (!$Force) {
|
|
foreach ($Output in $Outputs) {
|
|
$OutputPath = Join-Path $BUN_DEPS_OUT_DIR $Output
|
|
if (Test-Path $OutputPath) {
|
|
Write-Host "$Script - already built"
|
|
return
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
Remove-Item $Outputs -ErrorAction SilentlyContinue
|
|
}
|
|
|
|
Write-Host "$Script - Building"
|
|
Push-Location $PSScriptRoot
|
|
try {
|
|
& $ScriptPath
|
|
}
|
|
catch {
|
|
Write-Host "Failed to build $Script"
|
|
throw $_
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|
|
|
|
$Script:DidAnything = $true
|
|
}
|
|
|
|
Build-Dependency `
|
|
-Script "base64" `
|
|
-Outputs @("base64.lib")
|
|
Build-Dependency `
|
|
-Script "boringssl" `
|
|
-Outputs @("crypto.lib", "ssl.lib", "decrepit.lib")
|
|
Build-Dependency `
|
|
-Script "cares" `
|
|
-Outputs @("cares.lib")
|
|
Build-Dependency `
|
|
-Script "libarchive" `
|
|
-Outputs @("archive.lib")
|
|
Build-Dependency `
|
|
-Script "lolhtml" `
|
|
-Outputs @("lolhtml.lib")
|
|
Build-Dependency `
|
|
-Script "mimalloc" `
|
|
-Outputs @("mimalloc.lib")
|
|
# Build-Dependency `
|
|
# -Script "tinycc" `
|
|
# -Outputs @("tcc.lib")
|
|
Build-Dependency `
|
|
-Script "zlib" `
|
|
-Outputs @("zlib.lib")
|
|
Build-Dependency `
|
|
-Script "zstd" `
|
|
-Outputs @("zstd.lib")
|
|
Build-Dependency `
|
|
-Script "libuv" `
|
|
-Outputs @("libuv.lib")
|
|
Build-Dependency `
|
|
-Script "lshpack" `
|
|
-Outputs @("lshpack.lib")
|
|
|
|
if (!($Script:DidAnything)) {
|
|
Write-Host "(run with -Force to rebuild all)"
|
|
} |