$ErrorActionPreference = "Stop" Set-StrictMode -Version Latest $subprojects = "subprojects" if (-not (Test-Path $subprojects)) { New-Item -Path $subprojects -ItemType Directory | Out-Null } # Download pre-built shaderc, it is quite big to build each time # For download link see https://github.com/google/shaderc/blob/main/downloads.md $url = "https://storage.googleapis.com/shaderc/badges/build_link_windows_vs2019_release.html" $shaderc = "shaderc.zip" $resp = Invoke-WebRequest -Uri $url if ($resp.Content -match '