Init mpv-joc

This commit is contained in:
TheM14 committed 2026-10-18 21:31:38 +08:00
commit 126e2cd233
52 files changed
+11035

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
param(
[Parameter(Mandatory=$true)][string]$JocCoreSource
)
$ErrorActionPreference = 'Stop'
$headers = @("joc_core.h", "joc_stream.h", "joc_version.h")
$failures = 0
foreach ($header in $headers) {
$local = Join-Path $PSScriptRoot "..\third_party\joc\include\$header"
$source = Join-Path $JocCoreSource "include\$header"
if (-not (Test-Path $source)) { Write-Output "missing $source"; $failures++; continue }
$a = (Get-FileHash $local -Algorithm SHA256).Hash
$b = (Get-FileHash $source -Algorithm SHA256).Hash
if ($a -eq $b) {
Write-Output "same $header $a"
} else {
Write-Output "DIFFERS $header $a != $b"
$failures++
}
}
if ($failures -ne 0) { throw "$failures header(s) differ from the source checkout" }
Write-Output "public headers are byte-identical to $JocCoreSource"