Skip to content

Commit

Permalink
project: Modify appveyor support to remove VS 2013 and add VS 2019.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Sep 10, 2019
1 parent 85d668e commit 625b2a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SMP/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ before_build:
- ps: >-
if ($env:MSVC_VER -eq 16) {
$env:VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat"
} else if ($env:MSVC_VER -eq 15) {
} elseif ($env:MSVC_VER -eq 15) {
$env:VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat"
} else {
$env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:MSVC_VER" + "0COMNTOOLS"))
Expand Down Expand Up @@ -105,18 +105,20 @@ before_build:
# Set Targets path so that gitlink works correctly
- ps: $env:MSBUILDDIR=((Get-Command msbuild.exe).Path | Split-Path -parent)
- ps: >-
if ($env:MSVC_VER -gt 14) {
if ($env:MSVC_VER -eq 16) {
$env:VCTargetsPath="$env:MSBUILDDIR\..\..\Microsoft\VC\v160\"
} elseif ($env:MSVC_VER -eq 15) {
$env:VCTargetsPath="$env:MSBUILDDIR\..\..\..\Common7\IDE\VC\VCTargets"
} else {
$env:VCTargetsPath="$env:MSBUILDDIR\..\..\..\Microsoft.Cpp\v4.0\V${env:MSVC_VER}0"
}
# Download and install nasm integration
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/ShiftMediaProject/VSNASM/releases/download/0.5/VSNASM.zip', "$pwd\nasm.zip")
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/ShiftMediaProject/VSNASM/releases/download/0.6/VSNASM.zip', "$pwd\nasm.zip")
- ps: Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory("$pwd\nasm.zip", "$pwd\TempNASMUnpack")
- cmd: call ".\TempNASMUnpack\install_script.bat"
# Additional nasm location in order to fix gitlink error
- ps: if ($env:MSVC_VER -ne 15) { Copy-Item -Force "TempNASMUnpack\*.*" "$env:VCTargetsPath\..\BuildCustomizations" }
- ps: if ($env:MSVC_VER -lt 15) { Copy-Item -Force "TempNASMUnpack\*.*" "$env:VCTargetsPath\..\BuildCustomizations" }

# Use project supplied script to download all required dependency libraries
- cmd: call "%APPVEYOR_BUILD_FOLDER%\SMP\project_get_dependencies.bat"
Expand Down

0 comments on commit 625b2a6

Please sign in to comment.