From e582d445dcc7860e84ad41f4c8627fc494daae7b Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Mon, 11 Jul 2016 03:25:39 +1000 Subject: [PATCH] project: Update AppVeyor CI to use gitlink. --- SMP/appveyor.yml | 46 ++++++++++++++++++++++++++++++++++++++++------ SMP/libsdl.sln | 30 +++++++++++++++--------------- SMP/libsdl.vcxproj | 2 ++ 3 files changed, 57 insertions(+), 21 deletions(-) diff --git a/SMP/appveyor.yml b/SMP/appveyor.yml index ccf113b426..83c7d05973 100644 --- a/SMP/appveyor.yml +++ b/SMP/appveyor.yml @@ -4,29 +4,51 @@ branches: only: - master skip_non_tags: true -configuration: Release+ReleaseDLL shallow_clone: true +configuration: Release+ReleaseDLL + +platform: x86+x64 + environment: matrix: - - MSVC_VER: 14 - MSVC_VER: 12 + - MSVC_VER: 14 + +install: +# Install GitLink +- cmd: choco install gitlink before_build: +# Create build project to compile all configurations and platforms at once - ps: >- $script = @' - + - + + - + %(PlatformList.Identity) - + + + Configuration=%(ConfigurationList.Identity);Platform=$(CurrentPlatform);OutDir=$(MSBuildThisFileDirectory)build_out\ + + + + + + + + + %(PlatformList.Identity) + + @@ -35,10 +57,22 @@ before_build: $script = $script -replace "APPVEYOR_PROJECT_NAME", "$env:APPVEYOR_PROJECT_NAME" + $script = $script -replace "APPVEYOR_REPO_NAME", "$env:APPVEYOR_REPO_NAME" + + $script = $script -replace "APPVEYOR_REPO_COMMIT", "$env:APPVEYOR_REPO_COMMIT" + $script | Out-File build.vcxproj + +# Backup platform so it is not affected by vcvars +- cmd: SET PLATFORMBACK=%PLATFORM% + +# Setup msvc environment for required compiler version (specified by MSVC_VER) - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:MSVC_VER" + "0COMNTOOLS")) - cmd: call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" amd64 +# Reset platform +- cmd: SET PLATFORM=%PLATFORMBACK% + build: project: build.vcxproj parallel: true diff --git a/SMP/libsdl.sln b/SMP/libsdl.sln index ab50f191e2..35583197b9 100644 --- a/SMP/libsdl.sln +++ b/SMP/libsdl.sln @@ -6,38 +6,38 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsdl", "libsdl.vcxproj", EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 Debug|x64 = Debug|x64 - DebugDLL|Win32 = DebugDLL|Win32 + Debug|x86 = Debug|x86 DebugDLL|x64 = DebugDLL|x64 - Release|Win32 = Release|Win32 + DebugDLL|x86 = DebugDLL|x86 Release|x64 = Release|x64 - ReleaseDLL|Win32 = ReleaseDLL|Win32 + Release|x86 = Release|x86 ReleaseDLL|x64 = ReleaseDLL|x64 - ReleaseLTO|Win32 = ReleaseLTO|Win32 + ReleaseDLL|x86 = ReleaseDLL|x86 ReleaseLTO|x64 = ReleaseLTO|x64 + ReleaseLTO|x86 = ReleaseLTO|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Debug|Win32.ActiveCfg = Debug|Win32 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Debug|Win32.Build.0 = Debug|Win32 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Debug|x64.ActiveCfg = Debug|x64 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Debug|x64.Build.0 = Debug|x64 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Debug|x86.ActiveCfg = Debug|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Debug|x86.Build.0 = Debug|Win32 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.DebugDLL|x64.Build.0 = DebugDLL|x64 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Release|Win32.ActiveCfg = Release|Win32 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Release|Win32.Build.0 = Release|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Release|x64.ActiveCfg = Release|x64 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Release|x64.Build.0 = Release|x64 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Release|x86.ActiveCfg = Release|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.Release|x86.Build.0 = Release|Win32 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseLTO|Win32.ActiveCfg = ReleaseLTO|Win32 - {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseLTO|Win32.Build.0 = ReleaseLTO|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 + {D82A9F8C-D671-4D9B-AE40-13CC6098AE69}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/SMP/libsdl.vcxproj b/SMP/libsdl.vcxproj index b265f3d5b3..a7b44b59b5 100644 --- a/SMP/libsdl.vcxproj +++ b/SMP/libsdl.vcxproj @@ -870,6 +870,7 @@ del /f /q $(OutDir)\licenses\libsdl.txt $(IntDir)\$(TargetName).pgd true winmm.lib;dxguid.lib;%(AdditionalDependencies) + true mkdir $(OutDir)\include @@ -931,6 +932,7 @@ del /f /q $(OutDir)\licenses\libsdl.txt $(OutDir)\lib\x64\$(TargetName).lib $(IntDir)\$(TargetName).pgd winmm.lib;dxguid.lib;%(AdditionalDependencies) + true mkdir $(OutDir)\include