From 6c965805fa85c9955d2e1f89f08014aaf704d374 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Dec 2019 07:10:40 +0300 Subject: AppVeyor: build w/ VS 2019 --- .appveyor/build.ps1 | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to '.appveyor') diff --git a/.appveyor/build.ps1 b/.appveyor/build.ps1 index f33b52b..d583e48 100644 --- a/.appveyor/build.ps1 +++ b/.appveyor/build.ps1 @@ -34,28 +34,6 @@ function Test-AppVeyor { return Test-Path env:APPVEYOR } -function Format-AppVeyorBoostDir { - return "boost_" + $env:appveyor_boost_version.replace('.', '_') -} - -function Get-AppVeyorBoostDir { - return "C:\Libraries\$(Format-AppVeyorBoostDir)" -} - -function Get-AppVeyorBoostLibraryDir { - param( - [string] $Platform = $env:PLATFORM - ) - - $BoostDir = Get-AppVeyorBoostDir - - if ($Platform -eq 'x64') { - return "$BoostDir\lib64-msvc-14.1" - } else { - return "$BoostDir\lib32-msvc-14.1" - } -} - function Set-AppVeyorDefaults { $script:ProjectDir = $env:APPVEYOR_BUILD_FOLDER $script:BuildDir = 'C:\Projects\build' @@ -63,12 +41,13 @@ function Set-AppVeyorDefaults { 'Visual Studio 2013' { 'Visual Studio 12 2013' } 'Visual Studio 2015' { 'Visual Studio 14 2015' } 'Visual Studio 2017' { 'Visual Studio 15 2017' } + 'Visual Studio 2019' { 'Visual Studio 16 2019' } default { throw "Unsupported AppVeyor image: $env:APPVEYOR_BUILD_WORKER_IMAGE" } } $script:Platform = $env:PLATFORM $script:Configuration = $env:CONFIGURATION - $script:BoostDir = Get-AppVeyorBoostDir - $script:BoostLibraryDir = Get-AppVeyorBoostLibraryDir -Platform $script:Platform + $script:BoostDir = $env:appveyor_boost_root + $script:BoostLibraryDir = $env:appveyor_boost_librarydir } function Build-Project { -- cgit v1.2.3