1 # force the CA cert cache to be rebuilt, in case Meson tries to access anything
2 Write-Host "Refreshing Windows TLS CA cache"
3 (New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
6 Write-Host "Compiling Mesa"
7 $builddir = New-Item -ItemType Directory -Name "build"
8 Push-Location $builddir.FullName
9 cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson -Dgallium-drivers=swrast -Dbuild-tests=true .. && ninja test"
12 Remove-Item -Recurse -Path $builddir
17 Write-Host "Mesa build or test failed"