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 4 5 Get-Date 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 --default-library=shared --buildtype=release -Db_ndebug=false -Db_vscrt=mt --cmake-prefix-path="C:\llvm-10" --pkg-config-path="C:\llvm-10\lib\pkgconfig;C:\llvm-10\share\pkgconfig;C:\spirv-tools\lib\pkgconfig" -Dllvm=true -Dshared-llvm=false -Dgallium-drivers=swrast -Dbuild-tests=true && ninja test' 10 $buildstatus = $? 11 Pop-Location 12 13 Get-Date 14 15 if (!$buildstatus) { 16 Write-Host "Mesa build or test failed" 17 Exit 1 18 } 19