2020-10-16 09:42:20 +00:00
|
|
|
$ErrorActionPreference = "Stop"
|
2020-09-17 11:08:14 +00:00
|
|
|
|
2020-10-16 09:42:20 +00:00
|
|
|
# Needed for Invoke-WebRequest to work via CI.
|
|
|
|
$progressPreference = "silentlyContinue"
|
2020-09-15 12:47:30 +00:00
|
|
|
|
2020-10-16 09:42:20 +00:00
|
|
|
if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) {
|
2020-10-14 20:32:08 +00:00
|
|
|
New-Item -ItemType Directory -Force -Path "$PSScriptRoot\..\deps"
|
2020-09-15 12:47:30 +00:00
|
|
|
|
2020-10-14 20:32:08 +00:00
|
|
|
Invoke-WebRequest -URI "https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-win64-x64.zip" -OutFile cmake.zip
|
|
|
|
tar -xf cmake.zip
|
|
|
|
mv cmake-3.18.2-win64-x64 "$PSScriptRoot\..\deps\cmake"
|
2020-09-15 12:47:30 +00:00
|
|
|
|
2020-10-14 20:32:08 +00:00
|
|
|
Invoke-WebRequest -URI "https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip
|
|
|
|
tar -xf boost.zip
|
|
|
|
cd boost_1_74_0
|
|
|
|
.\bootstrap.bat
|
|
|
|
.\b2 -j4 -d0 link=static runtime-link=static variant=release threading=multi address-model=64 --with-filesystem --with-system --with-program_options --with-test --prefix="$PSScriptRoot\..\deps\boost" install
|
|
|
|
if ( -not $? ) { throw "Error building boost." }
|
|
|
|
cd ..
|
|
|
|
}
|