1 $ErrorActionPreference = "Stop"
2 trap { $host.SetShouldExit(1) }
4 git submodule update -f "tools/vcpkg"
5 Push-Location -Path "tools/vcpkg"
6 $VCPKG_DIR = (Get-Item -Path ".\").FullName
8 ./vcpkg integrate install
10 # Patched Google Benchmark can be shared between vs2017 and vs2019 compilers
11 ./vcpkg "--vcpkg-root=$VCPKG_DIR" install --overlay-ports="$PSScriptRoot\ports" benchmark:x64-windows
14 ./vcpkg "--vcpkg-root=$VCPKG_DIR" install gtest:x64-windows
17 ./vcpkg "--vcpkg-root=$VCPKG_DIR" install nlohmann-json:x64-windows